Skip to content
Access control Disclosed report Intermediate CVE-2022-4689

usememos/memos vulnerable to account takeover due to improper access control

The application did not properly enforce access control, allowing an attacker to change HTTP header values and take over another user's account.

usememos/memos

Originally disclosed on huntr

usememos/memos is an open-source, self-hosted memo hub with knowledge management and socialization. Versions prior to 0.9.0 improperly maintain access control allowing an attacker to take over an account by changing header values in the HTTP request.

From the GitHub Advisory Database (GHSA-w57v-6xp4-rm2v, 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 application relied on a client-controlled HTTP header to determine the authenticated user instead of validating a server-side session or token.

Impact

An attacker could take over another user's account.

What the attacker needed

Ability to send crafted HTTP requests

The fix

The issue was fixed in version 0.9.0.

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.

Access control is how a website decides who is allowed to do what. Here, the site trusted a value in the request headers (extra information sent with each request) to identify the user, so an attacker could change that value and pretend to be someone else, taking over their account.

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.