Skip to content
XSS Disclosed report Intermediate

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.

tolo7010 Follow

Originally disclosed on HackerOne

Medium 6.5 View original
  • 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.

The original report as published on HackerOne, by tolo7010. Images and videos are our own copies; raw HTML is shown as text. View it on HackerOne.

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.

More by tolo7010

View all

15 more disclosed reports, best first.

More from Rockstar Games

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Cross-site scripting (XSS)

The lesson behind this report.

Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.