Skip to content
Misconfiguration Write-up Beginner

System misconfiguration is the number one vulnerability, at least for Mastodon

The Mastodon instance's object storage (MinIO) allowed anonymous access with full privileges, letting anyone list, download, modify, and delete all user-uploaded content, including direct message files. An attacker could replace profile pictures or delete files.

Lenin Alevski Follow

Published on alevsk.com

That question caught me by surprise. I immediately start thinking about OWASP top 10, RCE, 0days and things like that, then I remembered the security incidents I’ve deal with in the past and most of them has been related to employees accidentally exposing credentials or private keys so I responded with “developers…

Lenin Alevski, on alevsk.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

Root cause

The object storage bucket was configured to allow anonymous access with full S3 permissions (s3:*), rather than restricting public access to read-only or requiring authentication for write operations.

Impact

An attacker could download all files including direct message attachments, delete all files, and replace any existing file such as profile pictures, though the author only made a minor change to avoid disruption.

What the attacker needed

None

The fix

The issue was fixed after the author reported it to the instance administrator.

How it was found

  1. Create an account on the Mastodon instance and inspect the page source to find the media storage URL.
  2. Visit the media URL and observe an S3-style XML response indicating MinIO.
  3. Use the MinIO client to set an alias with empty credentials and list the bucket contents.
  4. Download a file (the server logo), modify it, and upload it back to confirm write access.

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.

The website stored user files like profile pictures in a cloud storage service called MinIO. That storage was set up to let anyone read, write, and delete files without logging in. So a stranger could change or remove any file on the site.

What is Misconfiguration?

Settings left unsafe: exposed panels, open storage buckets, debug modes, default credentials.

Similar reports

View all

Same bug class and techniques, clearest first.

Security misconfiguration

The lesson behind this report.

Settings left unsafe: exposed panels, open storage buckets, debug modes, default credentials.