JavaScript

JavaScript : XPath injection

Overview

The application executes XPath query built on the basis of data from an untrusted source. An attacker can change the meaning of the executed expression or execute arbitrary query.

A possible attack scenario:

  1. The application receives input data from an untrusted source.
  2. This data is used to dynamically create XPath query.
  3. An attacker get an opportunity to influence the semantics of the query or execute his/her own queries.
MEDIUM

DerScanner Severity Score

Check your JavaScript code for this vulnerability, free

Request a free pilot of DerScanner. We give you access and help with the first scan. It works in the cloud and on-premise.

Try it on your code, free

By submitting this form, I acknowledge that DerScanner may process my personal data I provided above for purposes explained above. More details about the processing.