Wallabag user can delete own API client unintentionally
The application allowed deletion of an API client via a GET request to a specific endpoint, making it vulnerable to cross-site request forgery. An attacker could trick a logged-in user into visiting a malicious page that silently deletes the user's API client.
wallabag/wallabag
Originally disclosed on huntr
Description
wallabag was discovered to contain a Cross-Site Request Forgery (CSRF) which allows attackers to arbitrarily delete API key via /developer/client/delete/{id}
This vulnerability has a CVSSv3.1 score of 6.5.
You should immediately patch your instance to version 2.6.3 or higher if you have more than one user and/or having open registration.
Resolution
This action is now doable only via POST method, which ensures that we can't do it via a 3rd-party website.
Credits
We would like to thank @tht1997 for reporting this issue through huntr.dev.
Reference: https://huntr.dev/bounties/5ab1b206-5fe8-4737-b275-d705e76f193a/
From the GitHub Advisory Database (GHSA-gjvc-55fw-v6vq, 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 delete endpoint accepted GET requests and lacked CSRF protection, allowing the action to be triggered by a third-party site.
Impact
An attacker could cause a logged-in user to delete their own API client without consent, potentially disrupting integrations; the text does not state whether other defences limited the attack.
What the attacker needed
Victim is logged in; victim visits attacker-controlled page
The fix
The action was fixed by requiring a POST request instead of a GET request.
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 malicious website makes a logged-in user's browser send a request to another site without the user's knowledge. Here, the delete action could be triggered by simply loading a link or image, so an attacker could embed it in a page the victim visits. The fix requires the delete action to be a POST request, which browsers do not send automatically from other sites.
What is CSRF?
Another site makes a signed-in user's browser perform an action they did not intend.