Exploitation of an old Rails vulnerability
An attacker tried to exploit an old Ruby on Rails vulnerability by sending crafted requests to the login endpoint with a malicious back_url parameter containing serialised Ruby objects. If successful, the attacker could execute arbitrary commands on the server, as evidenced by the crontab and download commands in the payload.
gist.github.com
Published on gist.github.com
Clone this repository at <script src="https://gist.github.com/ismasan/5647955.js"></script> - Save ismasan/5647955 to your computer and use it in GitHub Desktop.
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 application passed user-controlled data (the back_url parameter) into an unsafe deserialisation function, allowing arbitrary Ruby objects to be instantiated and code executed.
What the attacker needed
Target runs vulnerable Rails version; attacker can send HTTP requests
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 is about an old security hole in a web framework called Ruby on Rails. The attacker sent specially crafted web requests that tried to trick the server into running commands, like downloading and running a malicious program. The server owner says the attack did not succeed.
What is RCE?
Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.