Skip to content
XSS Write-up Beginner

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.

Muhammedsafvan, on medium.com

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

  1. Read an article on the site and notice a script in its code block executed.
  2. Write a test article using a JavaScript code template; the script did not run.
  3. Change the article's code template to HTML/XML and publish it.
  4. 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.

Similar reports

View all

Same bug class and techniques, clearest first.

Cross-site scripting (XSS)

The lesson behind this report.

Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.