Ruby console accessible on - cert-checker.allizom.org
A Ruby console was exposed on a public web server, allowing an attacker to run arbitrary commands. The reporter demonstrated command execution by running the 'id' command and receiving the output.
Originally disclosed on Mozilla
- Fixed in 29 days
- Paid in 30 days
- Disclosed after 29 days
User Agent: Mozilla/5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/52.0.2743.116 Safari/537.36
Steps to reproduce:
I am able to navigate and issue commands at the ruby console (cert-checker.allizom.org/griffin)
>> `id`
=> "uid=500(ec2-user) gid=500(ec2-user) groups=500(ec2-user),10(wheel)\n"
Actual results:
Able to issue commands via the Ruby console. Remote shell on webserver is possible.
Expected results:
This console should not be facing the internet.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely the Ruby console was deployed in a production environment without access controls or authentication.
Impact
An attacker could execute arbitrary commands on the web server, potentially leading to full remote shell access.
What the attacker needed
Internet access to the target URL
How it was found
- Navigate to the Ruby console at the given URL.
- Issue a command such as 'id' in the console.
- Observe the command output showing user and group information.
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 report has not been written yet. The Original tab links to the source.
A Ruby console is an interactive tool that lets someone run Ruby code on a server. If it is left open to the internet without protection, anyone can use it to run commands on the machine, which is like giving them a remote control for the server.
What is RCE?
Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.