usememos/memos vulnerable to stored cross-site scripting (XSS)
Memos before version 0.9.0 allowed uploading a crafted SVG file that could execute stored cross-site scripting when accessed via its direct link. An attacker could run malicious scripts in the context of the application.
usememos/memos
Originally disclosed on huntr
usememos/memos is an open-source, self-hosted memo hub with knowledge management and socialization. Memos prior to 0.9.0 has a feature to upload file and display it, and by uploading a crafted SVG file, an attacker could perform a stored cross-site scripting attack with the image direct link. This was patched in version 0.9.0.
From the GitHub Advisory Database (GHSA-c8jh-vcjh-fx2w, CC BY 4.0).
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 did not sanitise or restrict uploaded SVG files, allowing embedded scripts to execute when the file was served.
Impact
An attacker could perform stored cross-site scripting via the direct link to a crafted SVG file, potentially affecting users who open that link.
What the attacker needed
Ability to upload files; victim opens direct link
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.
This is a stored cross-site scripting (XSS) bug. The app let people upload SVG image files, but SVG files can contain scripts. When someone opened the direct link to such an image, the script ran in their browser, potentially letting the attacker do things like steal session data or act as the user.
What is XSS?
Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.