I Tried To Squiz The Best From The Most Bizzar Cve I Ever Seen Cve 2021 38759
The CVE concerns Raspberry Pi devices that use the default operating system credentials, allowing anyone who can reach SSH to log in. The author shows that this access can be used to download and run a reverse shell payload, and to install a service so the payload runs again after reboot.
I was quite surprised to come across this funny CVE, as it was the most bizarre one I had seen so far. This particular CVE was related to Raspberry Pi and the author used default credentials of raspberry OS (user: pi, password: raspberry) as a vulnerability.
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
Impact
An attacker who can reach the device over SSH could log in with the default credentials and run arbitrary commands, potentially using the device for crypto mining or DDoS if many devices are compromised.
What the attacker needed
Device reachable over SSH; default credentials unchanged
The fix
The default credentials should be changed and SSH should not be exposed with weak default passwords.
How it was found
- Create a reverse shell payload and host it on a server.
- Modify the command execution line in the CVE code to download the payload and a service file, then enable and start the service.
- Run a Python script that executes the modified exploit against each IP address in a list.
- Start a Metasploit multi handler to receive the reverse shell connections.
- Use the sessions command to run a command across multiple active sessions at once.
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.
Many devices ship with a default username and password that everyone can look up. If the owner never changes them, anyone who can reach the device over the network can log in as if they were the owner. This article shows how an attacker who logs in that way can run their own commands on the device.
What is Misconfiguration?
Settings left unsafe: exposed panels, open storage buckets, debug modes, default credentials.