Skip to content
Misconfiguration Write-up Beginner

Finding and Exploiting open SMB service [bug bounty write-up].

An SMB file-sharing service on a subdomain was reachable from the internet and allowed anonymous guest logins with read access to shares. An attacker could browse and read files on those shares without any credentials.

medium.com

Published on medium.com

Hi everyone. This time I have come up with a write-up of an misconfiguration of a SMB server that i came across while testing a target.

Sugam Dangal, 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 SMB service was exposed to the internet and configured to allow anonymous guest access to its shares.

Impact

Anyone on the internet could log in anonymously and read the files exposed on the SMB shares; write access was not actually possible, so the severity was reduced to High.

What the attacker needed

SMB port reachable from the internet; guest account enabled on the server; no credentials needed

How it was found

  1. Search Shodan for the target's certificate name and find an IP for a subdomain.
  2. Confirm the open SMB port with an nmap service scan.
  3. Run the nmap SMB share enumeration script against the host.
  4. Log in to SMB with the guest username and access the share.

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.

SMB is the file-sharing protocol Windows networks use to share folders and printers. This server was exposed to the whole internet and let anyone log in as a guest without a password, so strangers could open and read the shared files. The researcher first thought guests could also write files, but a second tool showed that was a mistake and only reading worked.

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.