WWBN AVideo LoginWordPress loginForm cancelUri parameter cross-site scripting (XSS) vulnerability
The LoginWordPress plugin's login form echoes the cancelUri request parameter into an anchor's href without sanitisation, so a crafted link can run attacker-supplied JavaScript in the victim's browser. An attacker could trick a logged-out administrator into opening such a link and act with their privileges.
Originally disclosed on Cisco Talos
A cross-site scripting (xss) vulnerability exists in the LoginWordPress loginForm cancelUri parameter functionality of WWBN AVideo 14.4 and dev master commit 8a8954ff. A specially crafted HTTP request can lead to arbitrary Javascript execution.
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 report has not been written yet. The Original tab links to the source.
How it worked
Root cause
The cancelUri request parameter is validated as a URL but then echoed directly into an HTML attribute without output encoding.
Impact
An attacker could execute arbitrary JavaScript in a victim's browser and, by luring an administrator, potentially compromise that account; the exploit requires the plugin configuration and a logged-out victim who follows a crafted link.
What the attacker needed
LoginWordPress plugin enabled; Custom WP Site field configured; Victim is logged out; Victim clicks a crafted link
The fix
The parameter should be output-encoded (or restricted to safe URLs) before being placed in the page; the text notes a vendor patch was released on the disclosure date.
How it was found
- Ensure the LoginWordPress plugin is active and the Custom WP Site setting is filled in.
- Log the victim out of AVideo by requesting the logoff page.
- Send the victim to the userLogin page with a crafted cancelUri value.
- The value is echoed into the cancel link and the script runs in the victim's 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.
Cross-site scripting (XSS) is when a website puts something a visitor supplied into its own page without cleaning it, so the visitor's browser treats it as code. Here a link parameter ends up inside a link's address on the page, letting an attacker slip in script that runs as the site. The attacker only needs the victim to click a prepared link while logged out.
What is XSS?
Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.