Skip to content
Access control Disclosed report Beginner CVE-2023-0610

wallabag subject to Improper Authorization via annotations

The annotations feature did not check authorization on PUT and DELETE requests, allowing any logged-in user to modify or delete any annotation by its ID. These requests also disclosed highlighted parts of entries to the attacker.

wallabag/wallabag

Originally disclosed on huntr

Impact

The annotations feature lets users add annotations on highlighted parts of an entry.

The controller does not validate authorization on PUT and DELETE requests which lets a logged user modify or delete any annotation using their ID on their endpoints example.org/annotations/{id}.

These vulnerable requests also disclose highlighted parts of the entry to the attacker.

You should immediately patch your instance to version 2.5.3 or higher if you have more than one user and/or having open registration.

Resolution

A user check is now done in the vulnerable methods before applying change on an annotation.

The Annotation retrieval through a ParamConverter has also been replaced with a call to the AnnotationRepository in order to prevent any information disclosure through response discrepancy.

Workarounds

Credits

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

Reference: https://huntr.dev/bounties/8fdd9b31-d89b-4bbe-9557-20b960faf926/

From the GitHub Advisory Database (GHSA-mrqx-mjc4-vfh3, 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 missing authorization checks in the annotation controller for PUT and DELETE methods, and using a ParamConverter that revealed existence of annotations.

Impact

A logged-in user could modify or delete any annotation and view highlighted parts of entries, but only if the instance has multiple users or open registration.

What the attacker needed

A logged-in user account; multiple users or open registration

The fix

A user check was added in the vulnerable methods, and annotation retrieval was changed to use the repository to prevent information disclosure.

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.

An annotation is a note attached to a highlighted part of an article. The application failed to check whether the person making a change to an annotation actually owned it. So any logged-in user could change or delete other people's annotations and see the highlighted text.

What is Access control?

A user can do something their role should not allow: reach an admin function, act on a feature they have not paid for, or skip a permission check. IDOR is the special case where the object belongs to someone else.

More from wallabag/wallabag

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Broken access control

The lesson behind this report.

A user can do something their role should not allow: reach an admin function, act on a feature they have not paid for, or skip a permission check. IDOR is the special case where the object belongs to someone else.