Stored Xss Vulnerability on ████████
A stored cross-site scripting vulnerability existed in a blog post editor, where an attacker could upload an SVG or HTML file containing script and have it execute when previewed or accessed. An attacker could run arbitrary JavaScript in the context of a victim's session.
- Triaged in 10 hours
- Fixed in 44 days
- Disclosed after 22 months
Summary: A Xss vulnerability using svg file & html file.
Step-by-step Reproduction Instructions
- Go to https://██████████/SitePages/Register.aspx and register.
- Go to
https://██████████/Profiles/My/#Your Username#/Blog/default.aspxand clickCreate a Postbutton. - Click
Bodytextarea and clickInsertbutton. - Click
Upload Filebutton and choose file (mygf.html or evilsvgfile.svg) - Click
Okbutton and wait. - Click Preview button and you will see xss alert.
PoC:
- Go to https://████████/_login/default.aspx?ReturnUrl=%2f_layouts%2f15%2fauthenticate.aspx%3fsource%3d%2fConference&source=/Conference and login with this username and password:
username: ███████
password: ███████
- Go to https://██████/Profiles/My/alobaloss/Blog/Lists/Photos/evilsvgfile.svg
So, you can see xss alert.
Impact
Classic Stored Xss
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 application allowed uploading SVG and HTML files without sanitising their content, and then served them in a way that executed embedded scripts.
Impact
An attacker could execute JavaScript in a victim's browser via the stored XSS.
What the attacker needed
A free account; victim views the uploaded file or preview
How it was found
- Register on the site.
- Go to your blog and click Create a Post.
- In the Body editor, click Insert.
- Upload an HTML or SVG file.
- Click OK and wait.
- Click Preview to trigger the script.
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.
Cross-site scripting is when a website lets someone sneak in their own code, which then runs in other people's browsers. Here, the blog editor allowed uploading a file containing a script, and when the file was previewed or opened, the script ran.
What is XSS?
Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.