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).
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.