Skip to content
DoS Write-up Intermediate

Abusing Microsoft Teams rate limiting for DDoS

Microsoft Teams Incoming Webhooks allowed HTML with external image sources, and the backend fetched those images without rate limiting. An attacker could send many webhook messages with unique image URLs to flood a target server with GET requests.

Omayr Zanata Follow

Published on medium.com

The vulnerability is basically the lack of rate limit when Microsoft Teams Webhook is performing GET requests to load external images

Omayr Zanata, on medium.com

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 cause a distributed denial of service against a target website by making Teams send thousands of requests in a short time, though Microsoft closed the report without servicing it.

What the attacker needed

A Microsoft Teams account; ability to add an Incoming Webhook to a channel; victim server reachable from Teams backend

The fix

The webhook renderer should sanitise HTML to block external image sources or apply strict rate limiting and caching to image fetches.

How it was found

  1. Sign in to Microsoft Teams.
  2. Add an Incoming Webhook connector to a channel and copy its URL.
  3. Use a script to send a message containing many image tags with unique query strings.
  4. Send the request multiple times to create many messages.
  5. Open the Teams app and load the channel, which triggers all image fetches at once.
  6. Observe the flood of requests on a test server.

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.

A webhook is a way for one app to send messages to another. Here, Teams would automatically download any image linked in a message, and it did not limit how many downloads it made. An attacker could make Teams download thousands of images from a victim's website very quickly, overwhelming it.

What is DoS?

A request that exhausts resources or crashes a component. Many programs forbid testing it; reports usually show it from code, not by attacking.

More from Microsoft

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Denial of service

The lesson behind this report.

A request that exhausts resources or crashes a component. Many programs forbid testing it; reports usually show it from code, not by attacking.