peplink Surf SOHO HW1 upload_brand.cgi cross-site scripting (XSS) vulnerability
A stored cross-site scripting vulnerability exists in the upload_brand.cgi endpoint of Peplink Surf SOHO HW1 v6.3.5. An authenticated attacker with write privileges can inject malicious JavaScript that executes in another user's browser when they view the branding.
Originally disclosed on Cisco Talos
A stored cross-site scripting (XSS) vulnerability exists in the uploadbrand.cgi functionality of peplink Surf SOHO HW1 v6.3.5 (in QEMU). A specially crafted HTTP request can lead to execution of arbitrary javascript in another user’s browser.
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
Likely the application only checks one parameter against a short blocklist and uses an incomplete JavaScript escaping function that does not perform HTML-specific escaping, allowing script injection through other parameters.
Impact
An attacker could execute arbitrary JavaScript in another user's browser, potentially leading to information disclosure or actions on behalf of the victim, though the CVSS score indicates limited confidentiality impact and no integrity or availability impact.
What the attacker needed
Authenticated access with write privileges; device OEM must be VISLINK; victim views the admin interface
How it was found
- Authenticate to the device with write privileges.
- Send an HTTP POST request to /cgi-bin/MANGA/upload_brand.cgi with mode=api and malicious values in brand_web_name or brand_web_link_url.
- The values are saved to /etc/brand.conf.
- When another user loads the admin interface, the stored script executes in their 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.
This report describes a security flaw in a home router's web interface. An attacker who can log in with write access can save malicious code (JavaScript) into the router's branding settings. When another user later views the router's admin page, that code runs in their browser, potentially letting the attacker steal information or perform actions as that user.
What is XSS?
Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.