XSS by tossing cookies
The report describes cross-site scripting vulnerabilities in Outlook and Twitter where user-controlled cookie values were reflected without sanitisation. Attackers could exploit these by setting arbitrary cookies via a comma-delimited cookie injection in Safari, leading to script execution in victims' browsers.
Published on wesecureapp.com
All cross site scripting vulnerabilities cannot be exploited easily and would need a vulnerablity chain to exploit them For example a self XSS that only executes in your profile, here is how whitton used minor OAuth flaws to exploit a cross site scripting in Uber…
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 write-up has not been written yet. The Original tab links to the source.
How it worked
Impact
An attacker could execute arbitrary JavaScript in victims' browsers, potentially stealing data or performing actions, but only in Safari due to its cookie handling and lack of CSP 2.0 support.
What the attacker needed
Victim uses Safari; victim clicks a crafted link; attacker can set cookies via endpoint
The fix
The vulnerabilities were fixed by Microsoft and Twitter, though Twitter's fix was silent.
How it was found
- Identify that a cookie value is reflected unsanitised in the page source.
- Find an endpoint that sets cookies from user input, allowing comma injection.
- Craft a URL that sets the malicious cookie via the endpoint.
- Send the URL to a victim using Safari to trigger the XSS.
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 write-up has not been written yet. The Original tab links to the source.
Cross-site scripting (XSS) is when a website shows user input as code, letting attackers run scripts in other users' browsers. Here, the sites put cookie values into the page without cleaning them, and the researchers found a way to set those cookies in Safari by abusing how it handles commas in cookie headers.
What is XSS?
Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.