In any autocomplete field, if the user enters "../" in the textarea, the GET query to the backend includes this literal text, meaning that you can escape your autocomplete_path and get onto other pages. Of course, when you hit a regular HTML page, the JS can't parse it. Naively, it seems that these characters should be escaped, or POST should be used to a fixed URL.
This is an issue in at least D7 and D6. See attached screenshot.
| Comment | File | Size | Author |
|---|---|---|---|
| Autocomplete JS Error.jpg | 35.83 KB | lyricnz |
Comments
Comment #1
dave reidAdding tag.
Comment #2
lyricnz commentedBug still present in D7 head (eg: try typing any '/' into an autocomplete field, or ".." at the start).
Two related bugs:
- any use of '/' in autocomplete text results in a HTTP 404 from the server
- starting autocomplete text with ".." causes the autocomplete to go off the top of the autocomplete_path
Comment #3
grendzy commentedDuplicate of #93854: Allow autocompletion requests to include slashes