the_open_door
coffee
ESEN
← Back to index

Default Credentials

ATT&CKT1078.001

A service installed with a factory username/password pair that nobody changed is the cheapest way in there is: no exploit, no brute force, nothing to break. All you need is to know which version of which product is answering on the other side, which is what makes turning a version into a vector more than a formality.

The pattern shows up in three different places:

There is no command that exploits this: what there is, is a habit. Before looking for an exploit for the version that just showed up in the banner, look for its factory credentials in the product's own documentation, which is where they live and where the vendor publishes them so the administrator changes them.


nxc smb <ip> -u <user> -p <pass>            # validate the pair against every service
hydra -C <user:pass.txt> <ip> http-get /manager/html

Two nuances that save time:

Requirements#

That the service still runs with its installation configuration. Nothing else: no vulnerable version, no hidden path, no flaw. In a lab it is almost always the intended route; in a real environment it is the finding that turns up most often on the devices nobody administers (printers, NAS boxes, cameras, backup consoles).

How to detect it. On the service side, a successful login with the factory account from an address that is not the administration one: it is a valid authentication event, so no brute-force detector fires and you have to look for it by account name (admin, root, sa, tomcat, guest). On Windows, a 4624 for the guest account or for a service account coming from a client workstation. And for inventory, what really closes it is a sweep of your own: run the list of known pairs against the services on the network and see which ones answer.

Defence. Change the password at deployment time, not later, and verify it with a job that fails if the factory pair is still alive. Installation accounts get disabled, not renamed. And administration panels do not belong on the user-facing interface: a Tomcat Manager reachable from the internet is a decision, not an oversight by the vendor.

Machines where it's used