GHSL-2024-093: Remote Code Execution (RCE) in Haven - CVE-2024-39906
A command injection vulnerability in Haven's IndieAuth functionality allowed an unauthenticated attacker to craft a URL that, when visited by a logged-in administrator, executed arbitrary shell commands on the server. This could lead to remote code execution.
A command injection vulnerability was found in the IndieAuth functionality of the Ruby on Rails based Haven blog web application. The affected functionality requires authentication, but an attacker can craft a link that they can pass to a logged in administrator of the blog software.
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 report has not been written yet. The Original tab links to the source.
How it worked
Impact
This issue may lead to Remote Code Execution (RCE).
What the attacker needed
Victim is a logged-in administrator; attacker knows the Haven host URL; victim visits a crafted link
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.
This report describes a command injection bug in a blog application. When an administrator clicked a malicious link, the application ran harmful commands on the server because it treated part of the link as a system command. This could let an attacker take control of 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.