Xss Store In Zkteco Welcome To Wdms
The employee name field in ZKTeco WDMS 5.1.3 was only validated on the frontend, so an attacker could intercept the request and store a script payload that would execute in other users' browsers. This persistent cross-site scripting could let an attacker run code in the context of an administrator's session.
Published on infosecwriteups.com
Hello everyone! On this occasion, I would like to share how I discovered a vulnerability in a ZKTeco WDMS system.
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 write-up has not been written yet. The Original tab links to the source.
How it worked
Impact
An attacker could store a script that executes in the browser of any user who views the affected employee data, potentially compromising their session.
What the attacker needed
Authenticated access to WDMS; ability to intercept HTTP requests; victim views the stored employee data
The fix
The application should validate and sanitise the employee name on the server side, not only in the frontend.
How it was found
- Log in to the ZKTeco WDMS application.
- Open the employee information editing form and locate the Emp Name (EName) field.
- Intercept the request that saves the employee name.
- Modify the name value to contain a script payload and send the request.
- Observe that the payload is stored and later reflected in the user's view.
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 write-up has not been written yet. The Original tab links to the source.
A web form checked the employee name only in the browser, not on the server. By catching the request before it left the browser, an attacker could put a small script into the name. That script is saved and later runs in the browser of anyone who views the employee list, which is called stored cross-site scripting.
What is XSS?
Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.