Skip to content
XSS Write-up Beginner

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.

Miguel Angel Méndez Z Follow

Published on infosecwriteups.com

Hello everyone! On this occasion, I would like to share how I discovered a vulnerability in a ZKTeco WDMS system.

Miguel Angel Méndez Z., on infosecwriteups.com

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

  1. Log in to the ZKTeco WDMS application.
  2. Open the employee information editing form and locate the Emp Name (EName) field.
  3. Intercept the request that saves the employee name.
  4. Modify the name value to contain a script payload and send the request.
  5. 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.

More by Miguel Angel Méndez Z

View all

7 more disclosed reports, best first.

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.