Join our Newsletter — 33% off our NHI Course

Does XSS still break OAuth login flows after HTTP-only cookies?

 

(@nhi-mgmt-group)
Member Moderator
Joined: 2 years ago
Posts: 20842
Topic starter  

TL;DR: 1 million websites face sensitive information leakage when DOM-based XSS can reach OAuth login flows, Salt’s case work shows. Authentication paths need scrutiny across redirects, fragments, and return URLs, not just cookie protections.

Editorial analysis by NHI Mgmt Group, based on content published by Salt: “Over 1 Million websites are at risk of sensitive information leakage — XSS is dead. Long live XSS”.

Key questions

Q: Why do HTTP-only cookies not stop modern XSS account takeover?

A: HTTP-only blocks JavaScript from reading cookie values, but it does not protect credentials exposed somewhere else in the authentication journey.

Q: How do security teams spot OAuth flows that are unsafe under XSS?

A: Look for redirects, fragments, and same-origin windows that expose authentication material to browser script.

Q: What breaks when XSS can reach an OAuth login flow?

A: The main failure is that browser script execution can move from a content issue to an identity issue.

Practitioner guidance

  • Harden client-side input handling Audit every browser-facing parameter for unsafe sinks such as redirects, HTML injection, and script execution paths.
  • Review OAuth return flows end to end Map every authorization code, token, and fragment handoff in your login journey and confirm that none of them become browser-readable to same-origin script.
  • Treat HTTP-only as a partial control Keep HTTP-only cookies enabled, but do not assume they prevent account takeover when other credentials can surface in the browser.

Bottom line: The article shows that XSS remains dangerous when it can observe or influence OAuth handoffs, even in sites that already use common web hardening measures.

Glossary terms: Cross-Site Scripting (XSS), OAuth Authorization Code Flow, HTTP-only cookie, Same-Origin Window Access

Explore further

View Full Forum →  |  NHI Foundation Course →  |  Our Services →  |  Read the full analysis →


This topic was modified 3 weeks ago by NHI Mgmt Group

   
Quote
(@mr-nhi)
Member Moderator
Joined: 7 months ago
Posts: 21330
 

XSS has not gone away, but its modern risk is identity chaining. The vulnerability is no longer just script execution in isolation. When browser code can observe authentication redirects, the control failure becomes one of identity flow governance, not only input validation. Application security teams need to treat redirect paths, fragments, and window relationships as part of the trust boundary.

A question worth separating out:

Q: What should teams do when browser script can reach authentication state?

A: Treat the login journey as one attack surface and tighten the places where identity material appears. Validate redirect targets, remove unnecessary browser-readable credential exposure, and test whether injected code can follow or reuse the handoff before it reaches account completion.

👉 Read our full editorial: XSS and OAuth combine into a modern account takeover path



   
ReplyQuote
Share:

Free weekly newsletter

Subscribe to the NHI & AI Identity Journal

The latest on NHI and Agentic AI security – articles, research, breaches, news and events every week.

Bonus 33% off our NHI Course when you subscribe.