Brute Force Bonanza: Hacking into Web & SSH Logins to Capture th
The target services used weak passwords for HTTP Basic Auth, SSH, and FTP, allowing an attacker to brute-force credentials and gain access. The attacker then used the compromised SSH account to discover an FTP user and brute-force that password, ultimately downloading a flag file.
Published on medium.com
We’re diving headfirst into a real-world brute-force challenge where we go toe-to-toe with weak credentials across HTTP Basic Auth, SSH, and FTP. Flags will be captured.
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 weak passwords were used for the HTTP Basic Auth, SSH, and FTP services, making them susceptible to brute-force attacks.
Impact
An attacker could gain unauthorized access to multiple services and retrieve sensitive files, such as flags in this challenge.
What the attacker needed
Network access to target services; password wordlists
How it was found
- Intercept the initial GET request to the web server and observe a 401 Unauthorized response, confirming Basic Auth.
- Use Hydra with a password list to brute-force the Basic Auth credentials for user admin.
- Log in with the cracked credentials to capture the first flag.
- Identify the SSH service on port 31593 by its banner and brute-force the password for user satwossh using Medusa.
- After logging in via SSH, enumerate open ports and discover FTP on port 21, then find user thomas in /etc/passwd.
- Brute-force the FTP password for user thomas using Hydra, log in, and download flag.txt.
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.
This write-up shows how weak passwords on login services can be guessed using automated tools. The attacker tried many common passwords until one worked, then used that access to find and break into another service. It highlights the importance of strong, unique passwords.
What is Access control?
A user can do something their role should not allow: reach an admin function, act on a feature they have not paid for, or skip a permission check. IDOR is the special case where the object belongs to someone else.