Wallabag user can reset data unintentionally
Wallabag allowed state-changing actions (resetting annotations, entries, tags, archived items) via GET requests, making them vulnerable to CSRF. An attacker could trick a logged-in user into visiting a malicious page that triggers these resets, causing unintended data loss.
wallabag/wallabag
Originally disclosed on huntr
Description
wallabag was discovered to contain a Cross-Site Request Forgery (CSRF) which allows attackers to arbitrarily reset annotations, entries and tags, by the GET request to /reset/annotations, /reset/entries, /reset/tags, /reset/archived.
This vulnerability has a CVSSv3.1 score of 4.3.
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
These actions are now doable only via POST method, which ensures that we can't do them via a 3rd-party website.
Credits
We would like to thank @zpbrent for reporting this issue through huntr.dev.
Reference: https://huntr.dev/bounties/4ee0ef74-e4d4-46e7-a05c-076bce522299/
From the GitHub Advisory Database (GHSA-p8gp-899c-jvq9, 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 application used GET requests for state-changing operations, which can be triggered by third-party websites without CSRF protection.
Impact
An attacker could cause a logged-in user to unintentionally reset their annotations, entries, tags, or archived items, leading to data loss.
What the attacker needed
Victim is logged in; attacker can lure victim to a malicious page
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 application used GET requests for actions that change data, so an attacker could embed a link or image that, when loaded, would reset the user's data. The fix was to require POST requests for these actions, which cannot be triggered by simple links or images.
What is CSRF?
Another site makes a signed-in user's browser perform an action they did not intend.