OWASP / OWASP/ASVS

Clarification: V1.2.7 “query parametrization” and “precompiled queries”

Open
#3,213 8 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

V1 (prev V5)
Dominant language
HTML
Stars
3.6k
Forks
831
Avg merge
7h 55m
Merged PRs (30d)
4

Description

Verify that the application is protected against XPath injection attacks by using query parameterization or precompiled queries.

“query parametrization”

This is not widely supported(JavaScript’s document.evaluate()) in xPath and Lack of formal standard, The W3C XPath specifications (1.0, 2.0, 3.0, 3.1) do not define a formal parameterized query mechanism like SQL’s PREPARE statement.

“precompiled queries”

This is ambiguous, because this isn’t safe when user input is used unsafely.

The requirement lacks on strict input validation and escaping special characters as fallbacks when parameterization is not possible.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

No repository file or test is named. Start with the quoted ASVS requirement, JavaScript's document.evaluate(), and the cited W3C XPath specifications; done means reaching an agreed, unambiguous requirement covering parameterization, precompilation, validation, and escaping.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
documentation, security
Issue type
Documentation
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.