Wavlink AC3000 login.cgi set_lang_CountryCode() Persistent XSS vulnerability
The Wavlink AC3000 router's login.cgi allows unauthenticated attackers to inject persistent cross-site scripting (XSS) via the 'langue' parameter, which is stored in NVRAM and later rendered unescaped in multiple login pages. This could let an attacker steal admin session cookies or disrupt login services.
Originally disclosed on Cisco Talos
A cross-site scripting (xss) vulnerability exists in the login.cgi setlangCountryCode() functionality of Wavlink AC3000 M33A8.V5030.210505. A specially crafted HTTP request can lead to a disclosure of sensitive information.
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 'langue' parameter is stored in NVRAM and later output without sanitisation in multiple .shtml pages, leading to persistent XSS.
Impact
This could allow an attacker to deny login services or gain session cookies for administrative users, resulting in either a denial of service or information disclosure.
What the attacker needed
Network access to the device; victim visits a crafted page
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 router's web interface has a page that takes a language setting from the user and saves it without cleaning it. Later, that saved value is inserted directly into web pages without any checks, so if an attacker puts malicious code there, it will run in the browser of anyone who visits those pages. This can let the attacker steal login cookies or break the login page.
What is XSS?
Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.