Skip to content
XSS Disclosed report Intermediate

MK Site Cross-Site Scripting (XSS) in script context

A cookie named guid was reflected into a script context on the site without proper encoding, allowing an attacker to inject JavaScript. An attacker could execute arbitrary script in a victim's browser if the victim's cookie contained the payload.

adelin30 Follow

Originally disclosed on HackerOne

  • Triaged in under an hour
  • Fixed in 23 days
  • Disclosed after 4 months

Summary by the program

Summary

https://mackeeper.com Site Cross-Site Scripting (XSS) in script context Parameter - cookie: guid

Step to reproduce

Injected payload:

1%22%2C%22touchPoint%22%3A%22web%22%2C%22country%22%3A%22UA%22%2C%22affid%22%3A%2211111%22%7D%29%3Balert%28%22pwned%22%29%3Bvar%20simple%20%3D%20%28%7B%22name%22%3A%221

The original report as published on HackerOne, by adelin30. 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 the application inserted the guid cookie value into a JavaScript context without JavaScript-aware encoding or validation.

What the attacker needed

Victim's guid cookie contains the payload

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.

Cross-site scripting (XSS) is when a website puts user-controlled text into a page without making it safe, so a browser runs it as code. Here the value of a cookie called guid was placed inside a script on the page, so a crafted cookie value could run JavaScript. The report does not explain how an attacker would set that cookie on a victim.

What is XSS?

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

More from Clario

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.