Skip to content
CORS Write-up Beginner

Unauthorized Configuration Deletion via CORS Misconfiguration on

The API endpoint for deleting configurations reflected any Origin header and allowed credentials, so a malicious website could make a victim's browser send an authenticated request to delete their configuration. An attacker could delete a user's configuration without any interaction beyond visiting a page.

0xBruno Follow

Published on medium.com

During a routine assessment of a public-facing configuration management tool from a large industrial solutions provider, I identified a critical issue in their CORS implementation. This misconfiguration allowed any external website to send authenticated or unauthenticated requests to an API endpoint responsible for…

0xBruno, 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 delete a victim's configuration without any user interaction, provided the victim had an active session and visited the attacker's page.

What the attacker needed

Victim has an active session; victim visits attacker's page

How it was found

  1. Find the delete-configuration API endpoint that accepts a POST request with a configuration ID.
  2. Send a cross-origin request with credentials included and observe that the server reflects the attacker's Origin and allows credentials.
  3. Host a malicious HTML page that uses JavaScript to send a credentialed POST request to the delete endpoint.
  4. When a victim with an active session visits the page, their configuration is deleted.

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.

CORS is a browser rule that normally stops one website from reading data from another. Here the server told browsers that any website is allowed to send the user's cookies to a sensitive delete endpoint. So a page on an attacker's site could quietly tell the victim's browser to delete their configuration.

What is CORS?

A permissive cross-origin policy lets another site read responses with the user's credentials.

Similar reports

View all

Same bug class and techniques, clearest first.

CORS misconfiguration

The lesson behind this report.

A permissive cross-origin policy lets another site read responses with the user's credentials.