Lack of Sanitization and Insufficient Authentication
The language_attributes() function did not escape its output, which could lead to an XSS vulnerability if combined with other vulnerabilities. An attacker could potentially inject malicious script if another vulnerability allowed control of the output.
Originally disclosed on HackerOne
- Triaged in 18 days
- Fixed in 5 months
- Paid in 7 months
- Disclosed after 5 months
Summary by the program
The language_attributes() function was not escaping output, which could lead to an XSS vulnerability if combined with other vulnerabilities.
To fix that, the output was passed through esc_attr() in r42259, which was part of the 4.9.1 release.
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 function output was not escaped, which could lead to XSS if combined with other vulnerabilities.
Impact
This could lead to an XSS vulnerability if combined with other vulnerabilities, meaning script execution may be possible only when another flaw allows control of the output.
What the attacker needed
Another vulnerability to control output
The fix
The output was passed through esc_attr() in changeset r42259, part of the 4.9.1 release.
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 is about a function in WordPress that prints HTML attributes for the language setting. It did not properly clean the text it outputs, so if another bug let an attacker control that text, they could insert harmful code that runs in a visitor's browser. The fix makes sure the text is cleaned before it is printed.
What is XSS?
Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.