Skip to content
Info disclosure Write-up Beginner

How to exploit? Docker Registry — PORT 5000

An unauthenticated Docker Registry on port 5000 can expose stored container images, allowing an attacker to list repositories, pull images, and inspect their layers for embedded secrets such as environment files and configuration data.

medium.com

Published on medium.com

A Docker registry is a storage and distribution system for Docker images. These images are grouped into repositories, and each repository can store multiple tagged versions of an application or service.

Very Lazy Tech 👾, 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 read stored images and any secrets baked into them, which may lead to further access inside the target's infrastructure.

What the attacker needed

Registry reachable on port 5000; No authentication required

The fix

The registry should be configured to require authentication before allowing catalog listing or image pulls.

How it was found

  1. Scan port 5000 to find the Docker Registry service.
  2. Request the catalog endpoint to list available repositories.
  3. List tags for a repository to find image versions.
  4. Pull the image or download its layers and inspect them for secrets.

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 Docker registry is a server that stores container images, which are packaged applications. If it is reachable without a password, anyone can list the stored images and download them. Those images often contain leftover passwords or configuration files that were copied in during the build.

What is Info disclosure?

Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.

Similar reports

View all

Same bug class and techniques, clearest first.

Information disclosure

The lesson behind this report.

Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.