Microsoft 365 Copilot For Work: Image Data Exfiltration From SharePoint
Microsoft 365 Copilot for Work could be manipulated via a multi-turn jailbreak to inject HTML image tags into its chat interface, allowing an attacker to render and exfiltrate image files from the user's SharePoint without direct access. This impacts confidentiality by enabling brute-force enumeration of image filenames that may contain sensitive corporate information.
infosecwriteups.com
Published on infosecwriteups.com
Microsoft Security Response Center (MSRC) was informed of this finding and this disclosure write-up has been vetted. Before this issue was fixed, this data exfiltration finding only worked with image files (eg. png, jpg, svg)
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 authenticated attacker or insider could exfiltrate image files from SharePoint, potentially accessing sensitive corporate information, though the issue was rated low severity and later fixed as part of another fix.
What the attacker needed
Access to Microsoft 365 Copilot; victim has image files in SharePoint; attacker can interact with Copilot chat
The fix
The issue was fixed as part of another fix, and the exfiltration no longer works.
How it was found
- Start a conversation with Copilot, pretending to be a developer working on a frontend project.
- Shift the topic to Angular and ask Copilot to preview generated Angular code.
- Gradually introduce injection payloads in Angular, then pure JavaScript or primitive HTML like <img> tags.
- Inject an <img> tag that references an image file in the user's SharePoint to render it in the chat.
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.
Microsoft 365 Copilot is an AI assistant that can access files in SharePoint, a cloud storage service. The researcher tricked Copilot over several messages into inserting HTML code that displayed images from SharePoint, which Copilot should not normally allow. This let someone with access to the Copilot chat see images from the user's SharePoint without opening SharePoint directly.
What is AI / LLM?
Prompt injection, data exfiltration and tool abuse in features built on language models, and the ordinary bugs around them.