Skip to content
Access control Disclosed report Beginner CVE-2022-4796

usememos/memos makes Incorrect Use of Privileged APIs

A logged-in user could delete any note in the application by calling the memo deletion API with an arbitrary note ID. This allowed any user to wipe all notes system-wide, causing data loss.

usememos/memos

Originally disclosed on huntr

In usememos/memos 0.9.0 and prior, a user with login permission can delete all notes of the whole application via API DELETE https://demo.usememos.com/api/memo/$idnote. The vulnerability will lose all user notes data throughout the system, causing damage to user data.

From the GitHub Advisory Database (GHSA-ghx2-6v4g-9wmm, 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 delete endpoint did not verify that the requesting user owned the note being deleted.

Impact

Any logged-in user could delete every note in the system, causing loss of all user notes data.

What the attacker needed

A valid login account

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.

The app let any logged-in user delete any note, not just their own, by sending a request with someone else's note ID. This is like a shared document where anyone with an account can delete anyone else's pages. The fix is to check that the person making the request actually owns the note before deleting it.

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 usememos/memos

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.