CVE-2026-31381, CVE-2026-31382 Gainsight Assist Information ...#2041
Open
carlospolop wants to merge 1 commit intomasterfrom
Open
CVE-2026-31381, CVE-2026-31382 Gainsight Assist Information ...#2041carlospolop wants to merge 1 commit intomasterfrom
carlospolop wants to merge 1 commit intomasterfrom
Conversation
Collaborator
Author
🔗 Additional ContextOriginal Blog Post: https://www.rapid7.com/blog/post/ve-cve-2026-31381-cve-2026-31382-gainsight-assist-information-disclosure-xss-fixed Content Categories: Based on the analysis, this content was categorized under "Pentesting Web -> XSS (Cross Site Scripting) (add a subsection on WAF bypass via uncommon/browser-specific event handlers like Safari onpagereveal) and/or Pentesting Web -> OAuth to Account takeover (note about OAuth callback error parameter reflection and state/PII-in-URL pitfalls)". Repository Maintenance:
Review Notes:
Bot Version: HackTricks News Bot v1.0 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
🤖 Automated Content Update
This PR was automatically generated by the HackTricks News Bot based on a technical blog post.
📝 Source Information
🎯 Content Summary
Title/Scope
Rapid7 disclosed a 2-bug chain in the Gainsight Assist plugin ecosystem involving the trusted domain
app.gainsight.comused as an OAuth callback endpoint. The chain combines:1) CVE-2026-31381 — information disclosure of user email addresses (PII) via a Base64-encoded OAuth
statevalue present in a failure URL, and2) CVE-2026-31382 — reflected XSS / HTML injection via
error_description, with a demonstrated Safar...🔧 Technical Details
PII leakage through OAuth callback URL parameters: If an OAuth implementation embeds sensitive identifiers (e.g., attempted login email) inside URL parameters such as
stateand only Base64-encodes them, any party with visibility into the URL can decode the value and harvest PII. Because URLs are frequently captured (logs, proxies, browser history), avoid placing PII in URLs; use server-side session correlation or opaque identifiers.Reflected HTML injection/XSS via error parameters on a trusted origin: Reflecting attacker-controlled strings like
error_descriptioninto an error page without strict output encoding allows content spoofing and HTML injection, producing highly convincing phishing pages hosted on a legitimate domain. If script execution becomes possible (even in a single browser), this can escalate to reflected XSS.WAF bypass using browser-specific event handlers (Safari
onpagereveal): WAF rules comm...🤖 Agent Actions
Updated oauth-to-account-takeover.md.
I placed the content in the OAuth guide instead of the generic XSS page because the blog is mainly an OAuth callback misuse chain: attacker-controlled callback error parameters reflected on a trusted origin, plus
statecarrying reversible PII. The new subsection covers reflectederror_description, trusted-origin phishing, Safarionpagerevealas a browser-specific/WAF-bypass angle, self-referential callback abuse, and Base64-decodedstateinspection for PII leakage. I also added the Rapid7 blog and MDNpagerevealdocs to the file’s## References.Verified with
git diff; only that single file was changed.This PR was automatically created by the HackTricks Feed Bot. Please review the changes carefully before merging.