rdiffweb CSRF vulnerability in profile's SSH keys can lead to unauthorized access
The rdiffweb application accepted GET requests when adding SSH public keys to a user's profile, which should have required a POST request with CSRF protection. An attacker could trick a logged-in user into visiting a malicious link, causing the attacker's SSH key to be added to the victim's account and granting unauthorised access to the system and backups.
ikus060/rdiffweb
Originally disclosed on huntr
rdiffweb prior to 2.4.3 is vulnerable to Cross-Site Request Forgery (CSRF). While adding SSH public keys to the profile, the server accepts the GET request, which results in adding an SSH public key to the profile and leads to unauthorized access to the system and backups. Version 2.4.3 contains a patch for this issue.
From the GitHub Advisory Database (GHSA-vq4h-xrwc-m639, CC BY 4.0).
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 server used a GET request for a state-changing action (adding an SSH key) and did not enforce CSRF protection, so a crafted link could trigger the action.
Impact
An attacker could add their own SSH key to a victim's profile, leading to unauthorised access to the system and backups.
What the attacker needed
Victim is logged in; victim visits a malicious link
The fix
The issue was fixed in version 2.4.3, which contains a patch.
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.
Cross-Site Request Forgery (CSRF) is when a website lets a logged-in user's browser perform an action without the user intending it. Here, the server allowed adding an SSH key through a simple link (a GET request), so an attacker could make a victim's browser add the attacker's key. That key then lets the attacker log in as the victim and access their backups.
What is CSRF?
Another site makes a signed-in user's browser perform an action they did not intend.