Skip to content
SSRF Advisory Intermediate CVE-2024-29028CVE-2024-29029CVE-2024-29030

GHSL-2023-154_GHSL-2023-156: Server-Side Request Forgery (SSRF) and Cross-Site Scripting (XSS) in memos API - CVE-2024-29028, CVE-2024-29029, CVE-2024-29030

The memos API had multiple SSRF vulnerabilities that let unauthenticated and authenticated users access internal network resources. One SSRF endpoint also reflected attacker-controlled content, enabling XSS that could change an administrator's password.

Kwstubbs Follow

Originally disclosed on GitHub Security Lab

Multiple SSRF vulnerabilities exist in the memos API service that allow unauthenticated and authenticated users to enumerate and read from the internal network. In addition, one SSRF vulnerability leads to a reflected XSS vulnerability, which may allow an attacker complete control over the administrator account.

Kwstubbs, on GitHub Security Lab

The full write-up lives on its author's site

It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.

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

The application fetched user-supplied URLs without validating or restricting them to safe destinations, and one endpoint reflected the fetched content without sanitisation.

Impact

SSRF could lead to information disclosure about the internal network, and the XSS could allow privilege escalation to take over an administrator account.

What the attacker needed

None for unauthenticated SSRF; a free account for authenticated SSRF; victim clicks a link for XSS

The fix

The vulnerabilities were fixed in version 0.13.2.

How it was found

  1. Send a request to the unauthenticated endpoint with a URL pointing to an internal resource.
  2. For the authenticated endpoint, log in, create a resource with an external link, and set downloadToLocal to true.
  3. For XSS, host a malicious SVG file and trick a user into clicking a link to the image endpoint with the SVG URL.

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.

Server-Side Request Forgery (SSRF) is when a server is tricked into making requests to internal systems on behalf of an attacker. Here, the memos API took a URL from the user and fetched it without checking if it pointed to internal services. One endpoint also returned the fetched content directly, so a malicious file could run script in a victim's browser (Cross-Site Scripting, XSS).

What is SSRF?

The server can be made to fetch an address the attacker chooses, reaching internal services, cloud metadata or other customers' data.

More by Kwstubbs

View all

43 more disclosed reports, best first.

More from GitHub Security Lab

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Server-side request forgery (SSRF)

The lesson behind this report.

The server can be made to fetch an address the attacker chooses, reaching internal services, cloud metadata or other customers' data.