Your support community suffers from angularjs injection and must be fixed immediately [CRITICAL]
The support site used AngularJS to render user comments, and injecting code blocks into the comment body caused AngularJS errors. An attacker could leverage these errors to carry out limited-scope XSS or denial of service on individual comment threads.
- Triaged in 12 hours
- Fixed in 6 months
- Paid in 6 days
- Disclosed after 6 months
Summary by the program
In this report, the researcher found that due to our implementation of AngularJS on our Support site, we were susceptible to limited-scope code injection attacks. Particularly, they found that by injecting <code>...</code> blocks in the comment body parameter, they were able to cause errors that could be leveraged to carry out either XSS or Denial of Service attacks on individual comment threads. In response to this our team applied the ng-non-bindable directive to comment bodies and other user-input entry fields, which resolved the vulnerability and will also prevent other similar attacks from being carried out.
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 user-supplied comment content was rendered inside an AngularJS-compiled region without being marked as non-bindable, so AngularJS interpreted attacker-controlled markup.
Impact
An attacker could achieve limited-scope script execution or denial of service affecting individual comment threads, not the whole site.
What the attacker needed
Ability to post a comment; victim views the comment thread
The fix
The team applied the ng-non-bindable directive to comment bodies and other user-input fields, which resolved the vulnerability.
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.
AngularJS is a JavaScript framework that reads special markup in a page and turns it into interactive behaviour. If a site lets users type text that AngularJS later reads as markup, a user can sneak in instructions the framework will follow. Here, putting a code block in a comment confused AngularJS, and that confusion could be turned into running script or breaking the page for other readers.
What is XSS?
Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.