Skip to content
XSS Disclosed report Intermediate CVE-2023-2859

Code injection in nilsteampassnet/teampass

A malicious user could rename a folder with a payload containing code. When an admin edits that folder, the payload could execute, potentially giving the attacker access to the admin's system or stealing sensitive information.

nilsteampassnet/teampass

Originally disclosed on huntr

nilsteampassnet/teampass prior to 3.0.9 is vulnerable to code injection. A malicious user could potentially rename a folder with a payload containing malicious code. This could result in an attack on an admin who edits the folder, as the payload could execute upon the admin's interaction with the folder. This attack could potentially allow the attacker to gain unauthorized access to the admin's system or steal sensitive information, or it could force admin to get redirected to a website controlled by the attacker.

From the GitHub Advisory Database (GHSA-h6jh-cf83-qcq5, 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 fails to sanitise or encode folder names before displaying them to an admin, allowing injected code to execute.

Impact

An attacker could potentially gain unauthorised access to the admin's system, steal sensitive information, or redirect the admin to a website controlled by the attacker.

What the attacker needed

A user account able to rename folders; an admin edits the folder

The fix

The vulnerability was fixed in version 3.0.9.

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.

A user with low privileges could change a folder's name to include hidden code. When an administrator later opens or edits that folder, the code runs in the admin's browser or system. This is dangerous because the admin has more power, so the attacker could take over the admin's account or computer.

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 nilsteampassnet/teampass

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.