Skip to content
Info disclosure Write-up Beginner

port-scanning for large scopes can lead to $$$$

An unauthenticated Mosquitto MQTT broker on port 1883 exposed internal communication messages, including masked payment card numbers and base64-encoded client signatures. An attacker could subscribe to these messages and read sensitive internal data.

medium.com

Published on medium.com

Port scanning is one of the most important steps during reconnaissance. As Orwa Atyat recommends, it’s something you should be doing may times.

ABDELKARIM MOUCHQUELITA, 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

Root cause

Likely the Mosquitto broker was configured to allow anonymous access and was exposed to the internet, so anyone could subscribe to its topics.

Impact

An attacker could read internal messages containing masked payment card numbers, client signatures, and system details; the program marked it as N/A but still paid a P2 reward.

What the attacker needed

Mosquitto broker exposed on the internet; Anonymous access allowed

How it was found

  1. Scan all ports on the target host with Nmap to find open services.
  2. Identify port 1883 running Mosquitto.
  3. Use mosquitto_sub to subscribe to messages on the broker.
  4. Monitor the communication for a full day and collect the messages.

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 message broker is a service that lets different computers or programs send messages to each other. This one was left open to anyone on the internet without a password, so the researcher could simply listen in on the messages and see private information like parts of payment card numbers.

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.