I Found a Stored XSS in Freeedium.cfd
A stored cross-site scripting flaw existed on a site that mirrors Medium articles, because HTML/XML code blocks in articles were rendered without sanitisation. An attacker could store a script that runs in any visitor's browser, potentially stealing session data or altering the page.
medium.com
Published on medium.com
We all love free stuff, right? Well, I recently stumbled upon a website called Freedium.cfd, which promises users free access to Medium’s premium content.
The full write-up lives on its author's site
It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely the site rendered article code blocks as raw HTML/XML without sanitising or escaping them, so script tags in the content executed.
Impact
An attacker could run scripts in visitors' browsers, potentially stealing cookies and session tokens, altering the page for phishing, or loading external malicious scripts.
What the attacker needed
Ability to publish or edit an article; victim visits the infected article page
How it was found
- Read an article on the site and notice a script in its code block executed.
- Write a test article using a JavaScript code template; the script did not run.
- Change the article's code template to HTML/XML and publish it.
- Visit the article and see the script execute in the browser.
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 write-up has not been written yet. The Original tab links to the source.
Cross-site scripting (XSS) is when a website displays text from one user as if it were part of the site's own code, so a script hidden in that text runs in other people's browsers. Here the site copied articles from Medium and showed code blocks as live HTML instead of plain text. That let a stored script run for every reader of the page.
What is XSS?
Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.