Skip to content
XSS Advisory Beginner CVE-2024-47067

GHSL-2023-220: Reflected Cross-Site Scripting (XSS) vulnerability in Alist - CVE-2024-47067

A reflected XSS vulnerability in the /i/:link_name endpoint allows an attacker to steal a logged-in user's JWT token by tricking them into clicking a crafted link. The report also notes a CORS misconfiguration that could let an attacker make requests on behalf of guest users.

Kwstubbs Follow

Originally disclosed on GitHub Security Lab

A reflected Cross-Site Scripting (XSS) vulnerability exists in Alist that may allow unauthenticated users to steal the JWT token of users that click on a specially crafted link. In the worst case, this may allow an unauthenticated user to copy, delete and read arbitrary files on connected services or locally.

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 endpoint reflects user-controlled input into an XML response without proper sanitisation, allowing HTML tags to be injected via XHTML.

Impact

This issue may lead to arbitrary file deletion, arbitrary file read, and downloading arbitrary files.

What the attacker needed

Victim clicks a link; victim is logged in

The fix

The vulnerability was patched in a commit.

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 web application takes a value from the URL and puts it directly into a response without cleaning it. An attacker can craft a link that, when clicked by a logged-in user, runs malicious code in their browser and steals their login token. This token can then be used to access the user's files.

What is XSS?

Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.

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.

Cross-site scripting (XSS)

The lesson behind this report.

Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.