unauth mosquitto ( client emails, ips, license keys exposure )
An MQTT broker was exposed without authentication, allowing anyone to connect and subscribe to all topics. This exposed client data such as license keys, and allowed writing messages.
Originally disclosed on HackerOne
- Triaged in 5 hours
- Fixed in 4 days
- Paid in 3 days
- Disclosed after 56 days
Hi team
Summary
connect.acronis.com ( ip 88.99.142.45:1883 ) has unauth mosquitto mqtt, anyone can connect and read\write messages
Steps To Reproduce
[add details for how we can reproduce the issue]
- https://github.com/bapowell/python-mqtt-client-shell
- python3 mqtt_client_shell.py
- connection
- host 88.99.142.45
- connect
- subscribe "#" 1
Payload (str): b'{"host":"nusite", "tag":"nusite-licenser", "level":"debug", "msg":" response: {\'commands\': [],
\'license_info\': {\'licensee_name\': \'██████████\',
\'license_key\': \'█████████\', \'support_exp_date\': \'2021-11-30\',
\'licensed_actions\': [{\'names\': [\'*\'], \'rules\': [{\'ops\': [{\'action\': \'allow\'}]}]}]}, \'signature\': \'\'}"}'
█████
Recommendations
enable authentication
Thanks
Impact
access to client data, possibility to write messages to unauth mqtt
What the report shows
The target is connect.acronis.com, which the researcher reports as listening on [redacted]:1883. Port 1883 is the standard MQTT port, and the finding is that the Mosquitto broker behind it accepts connections without authentication, so anyone who can reach the port can read and write messages on the broker.
The reproduction steps are short. The researcher used an existing Python MQTT client shell, started it, connected to the host, and subscribed to the wildcard topic #, which matches every topic on the broker:
1. https://github.com/bapowell/python-mqtt-client-shell
1. python3 mqtt_client_shell.py
1. connection
1. host [redacted]
1. connect
1. subscribe "#" 1
With that subscription in place, the broker delivered application messages. One captured payload is included in the report:
Payload (str): b'{"host":"nusite", "tag":"nusite-licenser", "level":"debug", "msg":" response: {\'commands\': [],
\'license_info\': {\'licensee_name\': \'██████████\',
\'license_key\': \'█████████\', \'support_exp_date\': \'2021-11-30\',
\'licensed_actions\': [{\'names\': [\'*\'], \'rules\': [{\'ops\': [{\'action\': \'allow\'}]}]}]}, \'signature\': \'\'}"}]}'
The message is a debug log entry from a component tagged nusite-licenser. Inside the logged response is a licence information object containing a licensee name, a licence key, a support expiry date of 2021-11-30, and a set of licensed actions that allow everything (*). The licensee name and licence key are redacted in the published text. The report does not describe how many messages were observed or how many distinct licensees appeared.
The researcher's recommendation is to enable authentication. The impact section states access to client data and the possibility of writing messages to the unauthenticated broker. The report was rated medium severity with a CVSS score of 5.5, classified as improper access control, and paid a bounty of 150 USD. It was disclosed on 18 July 2022. The report does not describe a fix or a retest.
Root cause
Mosquitto permits anonymous connections unless allow_anonymous false is set and an authentication backend is configured.
Impact
As demonstrated, an unauthenticated client can subscribe to # and receive whatever the broker carries. The one captured payload was a debug log containing a licensee name and licence key, which the report calls client data. The report lists the possibility of writing messages to the unauthenticated broker but does not show a write being performed.
How this kind of bug works
MQTT is a lightweight publish/subscribe protocol. Clients connect to a broker, subscribe to topic filters, and receive every message published to a matching topic. Topic names are hierarchical and separated by slashes, and the wildcards + (one level) and # (all remaining levels) let a subscriber receive broad swathes of traffic. Authentication and authorisation are optional features of the broker: the protocol itself does not require a client to prove identity, and topic-level access control is a broker configuration concern.
That design makes an exposed broker a data sink. Devices and back-end services often publish telemetry, logs and command responses to predictable topics, and they frequently embed credentials, tokens or personal data in the payloads because the channel was assumed to be private. When the broker has no authentication, the entire topic tree is readable, and the same connection can publish into topics that downstream services trust.
Defences are broker-side: require credentials on every listener, restrict which clients may subscribe or publish to which topic patterns, and keep the broker off the public internet where possible, behind a firewall or VPN.
How to test for it
- Identify MQTT services. Port scan results showing 1883 (plain MQTT), 8883 (MQTT over TLS) or non-standard ports carrying the protocol are the starting signal. A CONNACK returned without credentials confirms the broker accepts anonymous clients.
- Connect anonymously. Using an MQTT client, attempt a connection with no username or password. A successful CONNACK with return code zero means the broker accepted an unauthenticated client.
- Enumerate topics. Subscribe to the
#wildcard and, if the broker rejects it, try narrower filters such as+/status,+/telemetryor application-specific prefixes. Watch for retained messages, which are delivered immediately on subscribe and often contain the most sensitive state. - Publish carefully. To demonstrate write access, publish a harmless marker to a topic you control or a clearly test-only topic, and observe whether it is echoed back or consumed. Avoid publishing into production command topics.
- Record evidence. Capture the connection result, the subscription, and a sample of received payloads with sensitive values redacted.
Common false positives: a broker that accepts the TCP connection but returns a CONNACK failure code is not unauthenticated; TLS-only listeners may need the right SNI or client certificate; and a broker that allows anonymous connect but denies all subscriptions through an ACL is far less severe than one that serves #. Also check whether the host is a honeypot or a deliberately public demo broker before reporting.
How it is fixed
Set allow_anonymous false on every listener and require username and password authentication, backed by a password file or an external identity provider. Apply an access control list so each client can only publish and subscribe to the topics it needs, and deny the # wildcard for untrusted clients. Bind the broker to internal interfaces, restrict port 1883 and 8883 at the firewall, and use TLS with certificate-based authentication for device fleets. Remove credentials and personal data from log payloads published over MQTT.
Hunting notes
Exposed brokers cluster around IoT and industrial deployments, SaaS integrations, and internal services that were accidentally published. Recon signals include open 1883 and 8883 ports, hostnames such as mqtt, broker or connect, and Shodan or Censys results for Mosquitto banners. Once a broker is found, the value is in the payloads: subscribe broadly, look for retained messages, and sample enough traffic to show what classes of data leak. To make the report land, show the anonymous connection, the wildcard subscription, and a redacted payload that clearly contains sensitive fields, and state plainly whether write access was confirmed or only possible.
What happened, in plain words
Acronis is a company that makes backup and security software. One of its systems, connect.acronis.com, runs a service that lets different pieces of software talk to each other. The researcher found that this service was reachable from the internet at [redacted]:1883 and that it let anyone connect without proving who they were.
The service is an MQTT broker. MQTT is a messaging system built around a simple idea: some programs publish messages to named channels called topics, and other programs subscribe to those topics to receive the messages. Think of it like a set of noticeboards in a building. Anyone who can walk in can pin a note to a board, and anyone who is subscribed to that board gets a copy. Normally the building has a doorman who checks who you are. Here, there was no doorman.
The software running the broker is called Mosquitto. The report shows that the broker accepted connections with no username, no password and no check at all.
What the researcher did
The reproduction steps are short. The researcher used an existing tool, a Python program that acts as an MQTT client, started it, connected to the host, and subscribed to the wildcard topic #. In MQTT, # means "every topic there is", so this one subscription asks the broker to send back every message that flows through it.
1. https://github.com/bapowell/python-mqtt-client-shell
1. python3 mqtt_client_shell.py
1. connection
1. host [redacted]
1. connect
1. subscribe "#" 1
Line by line: the first line points to the client program on GitHub. The second starts it with Python. The next lines are the commands typed inside that program: connection opens the connection menu, host [redacted] sets the address to connect to, connect actually connects, and subscribe "#" 1 subscribes to every topic at quality of service level 1 (a delivery setting that asks the broker to confirm messages arrive).
Each step matters because together they prove the whole chain: the port is open, the broker accepts a client with no credentials, and that client is allowed to listen to everything. If any one of those had failed, there would be no finding.
With the subscription in place, the broker started sending back messages that other systems were publishing. One captured message is included in the report:
Payload (str): b'{"host":"nusite", "tag":"nusite-licenser", "level":"debug", "msg":" response: {\'commands\': [],
\'license_info\': {\'licensee_name\': \'██████████\',
\'license_key\': \'█████████\', \'support_exp_date\': \'2021-11-30\',
\'licensed_actions\': [{\'names\': [\'*\'], \'rules\': [{\'ops\': [{\'action\': \'allow\'}]}]}]}, \'signature\': \'\'}"}]}'
This is a debug log entry, meaning a message a program writes to record what it is doing. It comes from a component tagged nusite-licenser. Inside the logged text is a licence information block: a licensee name, a licence key, a support expiry date of 2021-11-30, and a list of licensed actions that allows everything (the * means all). The licensee name and licence key are blacked out in the published report. A debug log message was carrying a licensee name and licence key, and the broker delivered it to an unauthenticated client.
The report does not say how many messages were seen or how many different customers appeared.
What the researcher recommended and how it was rated
The recommendation is one line: enable authentication, meaning require a username and password before anyone can connect. The impact section says the bug gives access to client data and the possibility of writing messages to the unauthenticated broker. The report lists the possibility of writing messages to the unauthenticated broker but does not show a write being performed.
The report was rated medium severity with a CVSS score of 5.5. CVSS is a standard scoring system from 0 to 10 that tries to put a number on how serious a flaw is. It was classified as improper access control, which is the general label for "the system did not check whether you were allowed to do this". A bounty of 150 USD was paid, and the report was disclosed on 18 July 2022. The report does not describe a fix or a retest.
In general, how this kind of bug works
MQTT is a lightweight publish and subscribe protocol, popular for devices and back-end services because it is small and efficient. Clients connect to a broker, subscribe to topic filters, and receive every message published to a matching topic. Topic names are hierarchical, separated by slashes, and two wildcards exist: + matches one level, and # matches everything below. Authentication and authorisation are optional features of the broker, not requirements of the protocol itself. The protocol does not force a client to prove who it is, and deciding which client may read or write which topic is a matter of broker configuration.
That design makes an exposed broker a place where data collects. Devices and services publish telemetry, logs and command responses to predictable topics, and they often put credentials, tokens or personal data in the payloads because the channel was assumed to be private. When the broker has no authentication, the whole topic tree is readable, and the same connection can publish into topics that other services trust.
Defences live on the broker side: require credentials on every listener, restrict which clients may subscribe or publish to which topic patterns, and keep the broker off the public internet where possible, behind a firewall or VPN.
In general, how to test for it
- Find MQTT services. A port scan showing 1883 (plain MQTT), 8883 (MQTT over TLS, the encrypted version) or unusual ports carrying the protocol is the starting signal. A connection reply returned without credentials confirms the broker accepts anonymous clients.
- Connect anonymously. Using an MQTT client, try to connect with no username or password. A successful connection reply with return code zero means the broker accepted a stranger.
- List topics. Subscribe to
#and, if the broker refuses, try narrower filters such as+/statusor+/telemetry. Watch for retained messages, which the broker sends immediately on subscribe and which often hold the most sensitive state. - Publish carefully. To show write access, publish a harmless marker to a topic you control or a clearly test-only topic, and see whether it comes back or is consumed. Do not publish into production command topics.
- Record evidence. Capture the connection result, the subscription, and a sample of received payloads with sensitive values redacted.
Common false positives: a broker that accepts the network connection but refuses the MQTT login is not unauthenticated; encrypted listeners may need the right server name or a client certificate; and a broker that allows anonymous connect but blocks all subscriptions through an access control list is far less serious than one that serves #. Also check whether the host is a honeypot or a deliberately public demo broker before reporting.
In general, how it is fixed
Set allow_anonymous false on every listener and require username and password authentication, backed by a password file or an external identity provider. Apply an access control list so each client can only publish and subscribe to the topics it needs, and deny the # wildcard for untrusted clients. Bind the broker to internal network interfaces, restrict ports 1883 and 8883 at the firewall, and use TLS with certificate-based authentication for device fleets. Remove credentials and personal data from log payloads published over MQTT.
Glossary
- MQTT: a lightweight messaging protocol where programs publish messages to named topics and others subscribe to receive them.
- Broker: the central server in MQTT that receives published messages and forwards them to subscribers.
- Mosquitto: a popular open-source MQTT broker.
- Topic: a named channel in MQTT, written with slashes, such as
nusite-licenser. - Wildcard (
#,+): special characters in a subscription;#matches every topic,+matches one level. - Subscribe / publish: asking to receive messages on a topic, and sending a message to a topic.
- Payload: the actual content of a message, as opposed to its address or metadata.
- Authentication: proving who you are, usually with a username and password or a certificate.
- Authorisation / access control: deciding what an identified user is allowed to do.
- Improper access control: a flaw where the system fails to check whether someone is allowed to perform an action.
- Port: a numbered door on a computer that a service listens on; 1883 is the standard MQTT port and 8883 the encrypted one.
- TLS: encryption for network connections, so others cannot read the traffic.
- Firewall: a filter that blocks or allows network traffic by address and port.
- VPN: a private encrypted network that only authorised users can join.
- Access control list (ACL): a list of rules saying which client may use which topic.
- Retained message: a message the broker stores and sends immediately to any new subscriber of that topic.
- Debug log: a record a program writes about its own activity, often containing details not meant for outsiders.
- Licence key: a secret code that proves a customer is entitled to use software.
- CVSS: a standard 0 to 10 score for the severity of a security flaw.
- Bounty: a payment a company makes to a researcher who reports a valid flaw.
- Honeypot: a decoy system set up to attract and observe attackers.
- False positive: a finding that looks like a problem but is not one.