Invision Community <= 5.0.7 (oauth/callback) Reflected Cross-Site Scripting Vulnerability
The 'state' POST parameter to the /oauth/callback/index.php script is not properly sanitized before being used to generate HTML output. An attacker could trick a victim into opening a crafted HTML page to perform reflected cross-site scripting.
karmainsecurity.com
Published on karmainsecurity.com
User input passed through the “state” POST parameter to the /oauth/callback/index.php script is not properly sanitized before being used to generate HTML output. This can be exploited by attackers to perform Reflected Cross-Site Scripting (XSS) attacks.
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 application reflects the 'state' POST parameter into HTML output without proper encoding or sanitisation.
Impact
An attacker could perform reflected cross-site scripting attacks against users of affected Invision Community installations.
What the attacker needed
Victim opens a crafted HTML page; affected Invision Community version
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 input from a user and puts it directly into a web page without cleaning it first, an attacker can sneak in code that runs in the victim's browser. This is called cross-site scripting, and it can let the attacker do things like steal the victim's session or act as them on the site. Here, the 'state' value sent during an OAuth login callback was not cleaned before being shown on the page.
What is XSS?
Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.