CVE-2023–50917: MajorDoMo Mayhem — Exploiting Vulnerabilities with Shodan
MajorDoMo versions before a specific commit allow command execution through the thumb.php script by injecting shell metacharacters. An attacker could run arbitrary commands on an exposed server.
Published on systemweakness.com
In the ever-expanding realm of smart homes and IoT devices, security is a paramount concern. Just when you thought your smart home was the epitome of convenience and security, along comes CVE-2023–50917 to stir things up.
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 thumb.php script passed unsanitised input into a shell command, so shell metacharacters were interpreted by the operating system.
Impact
An attacker could execute arbitrary commands on an internet-exposed MajorDoMo server, though only devices reachable from the internet and found via Shodan are affected.
What the attacker needed
Internet-exposed MajorDoMo instance; version before 0662e5e
The fix
It should be fixed by upgrading MajorDoMo to the latest version, which the text says mitigates the vulnerability.
How it was found
- Search Shodan using a favicon hash to find MajorDoMo devices.
- Filter the results with a nuclei template to find vulnerable hosts.
- Run a Python exploit to execute commands on a vulnerable device.
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.
MajorDoMo is software that runs a smart home. A part of it called thumb.php passed user input to the operating system without cleaning it, so special characters could make the server run extra commands chosen by an attacker. Anyone who could reach that page could then run commands on the machine.
What is RCE?
Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.