(CVE-2022-28730) Apache JSPWiki v2.11.1 - Reflected XSS in AjaxPreview.jsp
The AJAXPreview.jsp endpoint rendered user-supplied input without sanitisation, allowing reflected cross-site scripting. An unauthenticated attacker could run arbitrary JavaScript in an authenticated admin's browser if the admin triggered a crafted payload, potentially performing state-changing actions.
starlabs.sg
Published on starlabs.sg
Due to the lack of sanitzation before displaying the rendered preview to the user resulted in a Reflected XSS vulnerability at the AJAXPreview.jsp end-point. As a result, an unauthenticated attacker is able to execute arbitrary JavaScript code by deceiving an authenticated Admin user to trigger a specially crafted…
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 preview endpoint echoed user input into the HTML response without encoding or sanitising it.
Impact
An unauthenticated attacker could execute arbitrary JavaScript in an authenticated admin's session, potentially carrying out state-changing actions, though the victim must be tricked into triggering the payload.
What the attacker needed
Victim is an authenticated admin; victim triggers a crafted payload
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.
When a website takes something you typed and shows it back on the page without cleaning it first, an attacker can slip in JavaScript code. That code then runs in the browser of whoever views the page, as if the site itself had written it. Here the preview feature did exactly that, so an attacker could trick an admin into running their code.
What is XSS?
Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.