HTML Injection possible due to bad filter
The report describes a tag input field that parses HTML when a tag is entered without a closing bracket, but the parsing does not persist after saving. The author suspects this could lead to XSS but has not demonstrated harmful code execution.
- Triaged in 31 hours
- Fixed in 3 days
- Disclosed after 24 days
Hello,
I have found an area where it may be possible to run certain HTML/JS scripts.
TO REPRODUCE:
-
Go to documents
-
Upload anything and edit it
-
On the edit page in tags, enter code without a closing bracket ex. <img src=x
-
Click enter
-
It will be parsed in that area, but after saving it, it won't parse.
POTENTIAL: I'm still looking into this, as this could be a possible XSS vuln if I can find vectors without closing brackets that have harmful code.
WHY IT WORKS: The reason this works is because your filter only looks for opening AND closing brackets, when it is possible to run code without closing the brackets.
Thanks, Kicker
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely the input filter only checks for complete opening and closing brackets, so incomplete tags slip through and get parsed.
Impact
The parsing only happens before saving and does not persist, so no harmful script execution was shown; the author only suggests it could be an XSS vulnerability if a harmful vector is found.
What the attacker needed
Ability to upload and edit a document
How it was found
- Go to documents
- Upload anything and edit it
- On the edit page in tags, enter code without a closing bracket
- Click enter
- Observe that it is parsed in that area, but after saving it won't parse
Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
This is about a place where you can type tags, and the site accidentally treats some typed text as HTML code. HTML is the language that builds web pages, and if a site runs HTML you type, it can sometimes run scripts too. The author found a small glitch but could not make anything harmful happen.
What is XSS?
Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.