Skip to content
XSS Disclosed report Beginner CVE-2022-2523

Fava vulnerable to Reflected Cross-site Scripting

The query_string parameter in Fava was vulnerable to reflected cross-site scripting. An attacker could modify any information that the user is able to modify.

beancount/fava

Originally disclosed on huntr

Cross-site Scripting (XSS) - Reflected in GitHub repository beancount/fava prior to 1.22.2. The query_string parameter of Fava is vulnerable to reflected cross-site scripting, for which a attacker can modify any information that the user is able to modify. This issue is fixed in version 1.22.2.

From the GitHub Advisory Database (GHSA-q8hg-3vqv-f8v3, 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 reflected the query_string parameter into the page without proper output encoding or sanitisation.

Impact

An attacker could modify any information that the user is able to modify.

What the attacker needed

Victim clicks a crafted link

The fix

It was fixed in version 1.22.2.

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.

Reflected cross-site scripting (XSS) is when a website takes something from a link and puts it directly into the page without cleaning it. An attacker can craft a link that, when clicked, runs their own code in the victim's browser. Here, the query_string parameter was the unsafe input.

What is XSS?

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

More from beancount/fava

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.