How I Found Reflected XSS Vulnerability on Australian Government. [CVE-2022–35653]
A reflected cross-site scripting flaw existed in the Moodle LTI module because user-supplied data was not properly sanitised. An attacker could trick a victim into opening a crafted link and run script in the vulnerable site's context to steal information or alter the page.
systemweakness.com
Published on systemweakness.com
🚨 Important: I didn’t hack anything. I just used Recon with some Automation the right way.
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 insufficient sanitisation of user-supplied data in the Moodle LTI module, as the text states.
Impact
A remote attacker could trick a victim into following a crafted link and execute arbitrary script in the vulnerable site's context, potentially stealing sensitive information, altering the page, or performing phishing and drive-by-download attacks.
What the attacker needed
Victim clicks a crafted link; vulnerable Moodle LTI module
How it was found
- Enumerate domains and subdomains of the target.
- Resolve which subdomains are live and return web responses.
- Scan the live hosts with Nuclei, which flagged the issue.
- Search for a public exploit for the identified CVE.
- Craft an HTML proof of concept and confirm the script executed.
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 puts something a user typed or sent back into the page without cleaning it, so a hidden script can run in the visitor's browser. Here the Moodle learning tool's LTI module did not clean the input, so a crafted link could make a victim's browser run the attacker's code.
What is XSS?
Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.