Skip to content
CSRF Disclosed report Beginner

Wallabag user can disable 2FA unintentionally

The application allowed disabling two-factor authentication via GET requests to specific endpoints, enabling cross-site request forgery. An attacker could trick a logged-in user into visiting a malicious page that disables 2FA, weakening account security.

wallabag/wallabag

Originally disclosed on huntr

Impact

wallabag was discovered to contain a Cross-Site Request Forgery (CSRF) which allows attackers to arbitrarily disable 2FA through /config/otp/app/disable and /config/otp/email/disable.

This vulnerability has a CVSSv3.1 score of 4.3.

You should upgrade your instance to version 2.6.7 or higher.

Resolution

These endpoints now require POST method.

Credits

We would like to thank @dhina016 for reporting this issue through huntr.dev.

Reference: https://huntr.dev/bounties/4c446fe7-2a44-4907-b0cf-4ab77d75c487/

From the GitHub Advisory Database (GHSA-56fm-hfp3-x3w3, CC BY 4.0).

The original report as published on the GitHub Advisory Database. Images and videos are our own copies; raw HTML is shown as text. View it on GitHub Advisory Database.

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 endpoints that disable 2FA accepted GET requests and lacked CSRF protection, so a simple link could trigger the action.

Impact

An attacker could disable a victim's 2FA if the victim visited a malicious page while logged in, reducing account security.

What the attacker needed

Victim is logged in; victim visits 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.

Two-factor authentication (2FA) is an extra security step, like a code from your phone, when you log in. This report says a website let you turn off 2FA just by visiting a special link, without asking for confirmation. A bad site could make your browser visit that link while you are logged in, silently turning off your 2FA.

What is CSRF?

Another site makes a signed-in user's browser perform an action they did not intend.

More from wallabag/wallabag

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Cross-site request forgery (CSRF)

The lesson behind this report.

Another site makes a signed-in user's browser perform an action they did not intend.