Skip to content
XSS Disclosed report Beginner CVE-2022-0145

Cross-site Scripting in Fork CMS

Fork CMS before version 5.11.1 allows stored cross-site scripting because the module description field does not sanitise JavaScript. An attacker could upload a module with a malicious description, and the script would run when a user views the Details page.

forkcms/forkcms

Originally disclosed on huntr

Fork CMS prior to 5.11.1 is vulnerable to stored cross-site scripting. When uploading a new module, the description of the module can contain JavaScript code. The JavaScript code may be executed after uploading the new module and looking at the Details page.

From the GitHub Advisory Database (GHSA-qf2g-q4mc-w7rr, CC BY 4.0).

The original report as published on the GitHub Advisory Database. Images and videos are our own copies; raw HTML is shown as text. View it on GitHub Advisory Database.

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

How it worked

Root cause

Likely the application fails to sanitise or encode the module description before storing and rendering it.

Impact

An attacker could execute arbitrary JavaScript in the context of a victim's session, potentially leading to actions performed on their behalf.

What the attacker needed

Ability to upload a module; victim views the module Details page

The fix

It was fixed in version 5.11.1.

How it was found

  1. Upload a new module with a description containing JavaScript.
  2. Open the Details page for that module.
  3. The JavaScript executes 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 report has not been written yet. The Original tab links to the source.

Stored cross-site scripting (XSS) happens when a website saves harmful code and later shows it to other users. Here, the module description is saved without cleaning, so any JavaScript in it runs in the browser of anyone who opens the module's Details page.

What is XSS?

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

More from forkcms/forkcms

View all

The newest disclosed reports for this program.

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.