Your Medium Security Risks are Actually ‘High’ Risks In Disgu
A DOM-based cross-site scripting flaw allowed script injection, and because the session cookie lacked the HttpOnly flag, that script could read the cookie and take over accounts. Separately, a public WordPress users endpoint exposed usernames and an outdated jQuery library added further script-execution paths.
Published on meetcyber.net
So let me explain, in cybersecurity, we tend to triage by severity. We fix the “Criticals” and “Highs” immediately, while “Mediums” sit in the backlog for weeks.
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 page wrote user input into the document with innerHTML instead of a safe text method, and the session cookie was set without the HttpOnly flag so scripts could read it.
Impact
An attacker could run script in a victim's browser, steal the session cookie and take over the account; the text also notes that a strong Content-Security-Policy is recommended as a shield, implying it was not yet in place.
What the attacker needed
Victim visits a crafted page or link; session cookie readable by scripts; public user list aids targeting
The fix
The report recommends switching to textContent or sanitising with DOMPurify, setting session.cookie_httponly in php.ini, and adding a strong Content-Security-Policy; it does not say these were applied.
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.
The site put user-supplied text into the page in a way that let an attacker run their own JavaScript, which is code that runs in a visitor's browser. The login cookie that proves who you are was readable by that JavaScript, so the attacker could copy it and act as the victim. A public list of usernames and an old JavaScript library made the attack easier.
What is XSS?
Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.