Skip to content
XSS Write-up Beginner

Stored XSS: A N00bs Tale — CVE-2022–2391

The Inspiro Classic WordPress theme did not properly sanitise input in its portfolio module description, allowing a low-privileged contributor to inject and run JavaScript. This stored cross-site scripting could let an attacker execute script in the context of other users viewing the portfolio.

Fortune Okon Follow

Published on systemweakness.com

I wonder what comes to the mind of writers when they decide on the opening sentence or phrase of their books or articles. It definitely wasn't easy starting this and as much as I would like to claim some sort of literary proficiency mainly because of my epileptic poetry episodes, I think that honour should best be…

Fortune Okon, on systemweakness.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 theme did not sanitise or escape user-supplied input in the portfolio module description before storing and rendering it.

Impact

A low-privileged contributor could inject and run JavaScript, potentially affecting other users who view the portfolio, though the text does not detail further consequences.

What the attacker needed

Contributor-level account on WordPress; theme Inspiro Classic installed

The fix

The theme framework was updated to address the issue, as indicated by the changelog and update instructions.

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.

A contributor is a low-level WordPress user who can write posts but normally cannot run code. The theme failed to clean up text entered in a portfolio description, so a contributor could sneak in JavaScript that runs when someone else views the page. This is called stored cross-site scripting because the malicious script is saved on the site and later shown to other users.

What is XSS?

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

More by Fortune Okon

View all

1 more disclosed report, best first.

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.