Skip to content
XSS Write-up Beginner

This is how I got 16 CVEs in 2 months

A WordPress plugin allowed SVG file uploads, and the author found that an SVG containing script could execute as cross-site scripting when accessed directly. The author reports that this class of finding was rejected by one database but accepted by another, which assigned CVE identifiers.

rayhanhanaputra Follow

Published on medium.com

2024 was a year for me. I used to play a lot of CTF with my team called “Hantu Siber” (https://ctftime.org/team/203878/).

Rayhan Hanaputra, 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 plugin allowed SVG uploads and served them in a way that let embedded script execute in the browser.

Impact

An attacker could run script in a victim's browser when the uploaded SVG was accessed directly, though one reporting platform did not accept findings based on direct file access.

What the attacker needed

A WordPress site with the vulnerable plugin; ability to upload an SVG file; victim accesses the SVG directly

How it was found

  1. Set up a local WordPress instance using a virtual machine image.
  2. Install a plugin that supports SVG media upload.
  3. Create an SVG proof of concept containing script.
  4. Access the uploaded SVG directly 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 write-up has not been written yet. The Original tab links to the source.

Some websites let users upload pictures, and one picture format called SVG can contain instructions that a browser will run as code. If a site shows that file directly, the code can run in a visitor's browser, which is called cross-site scripting. The author used this to get a vulnerability identifier called a CVE.

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.