SearchLeak How We Turned M365 Copilot Into a One-Click Data ...#2380
Open
carlospolop wants to merge 1 commit into
Open
SearchLeak How We Turned M365 Copilot Into a One-Click Data ...#2380carlospolop wants to merge 1 commit into
carlospolop wants to merge 1 commit into
Conversation
Collaborator
Author
🔗 Additional ContextOriginal Blog Post: https://varonis.com/blog/searchleak Content Categories: Based on the analysis, this content was categorized under "AI Security -> AI Prompts / Prompt Injection; cross-reference Pentesting Web -> Content Security Policy (CSP) Bypass and SSRF". 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
SearchLeak is a critical three-stage vulnerability chain discovered by Varonis Threat Labs in Microsoft 365 Copilot Enterprise Search. Microsoft remediated it as CVE-2026-42824 and assigned it a critical maximum severity rating. The issue allowed an attacker to turn a single click on a trusted Microsoft 365 Copilot Search URL into silent data exfiltration from the victim’s Microsoft 365 environment.
The chain combines o...
🔧 Technical Details
Parameter-to-Prompt Injection through URL parameters: If an AI-backed search or assistant feature forwards a URL parameter directly into the model context, that parameter can become executable instructions instead of passive input. An attacker can craft a legitimate application URL where a query parameter tells the AI to search private user-accessible data, extract a field, transform it, and place it into an output sink. In SearchLeak, the
qparameter ofhttps://m365.cloud.microsoft/search/?auth=2&origindomain=microsoft365&q=<PROMPT>was abused to make Copilot search the victim’s Microsoft 365 data and generate attacker-controlled HTML.Streaming-output sanitizer race: AI applications that stream model output into the DOM can be vulnerable if sanitization is applied only to the final completed response. A post-processing wrapper such as
<code>may make the final output look safe, but d...🤖 Agent Actions
Done.
Updated file
src/AI/AI-Prompts.mdWhat I added
Parameter-to-Prompt Injection via URL Parameters (P2P)
?q=/deep-link prompt executionStreaming Output HTML Race -> Scriptless Exfiltration
<img>../pentesting-web/dangling-markup-html-scriptless-injection/README.md../pentesting-web/content-security-policy-csp-bypass/README.md../pentesting-web/ssrf-server-side-request-forgery/README.mdAdded references for:
Why this location
AI-Prompts.mdwas the best single-file fit because the novel part is the AI-specific injection surface; CSP/SSRF already exist elsewhere and are now cross-referenced instead of duplicated.Validation
git diffmdbook build, butmdbookis not installed in this environment (mdbook: command not found)This PR was automatically created by the HackTricks Feed Bot. Please review the changes carefully before merging.