28 lines
973 B
YAML
28 lines
973 B
YAML
|
id: CVE-2021-24838
|
||
|
|
||
|
info:
|
||
|
name: AnyComment <= 0.2.21 - Open Redirect
|
||
|
author: noobexploiter
|
||
|
severity: medium
|
||
|
description: The plugin has an API endpoint which passes user input via the redirect parameter to the wp_redirect() function without being validated first, leading to an Open Redirect issue, which according to the vendor, is a feature.
|
||
|
reference:
|
||
|
- https://wpscan.com/vulnerability/562e81ad-7422-4437-a5b4-fcab9379db82
|
||
|
- https://nvd.nist.gov/vuln/detail/CVE-2021-24838
|
||
|
tags: wordpress,wp-plugin,open-redirect
|
||
|
|
||
|
requests:
|
||
|
- method: GET
|
||
|
path:
|
||
|
- "{{BaseURL}}/wp-json/anycomment/v1/auth/wordpress?redirect=https://example.com"
|
||
|
|
||
|
matchers-condition: and
|
||
|
matchers:
|
||
|
- type: regex
|
||
|
part: header
|
||
|
regex:
|
||
|
- '(?m)^(?:Location\s*?:\s*?)(?:https?:\/\/|\/\/|\/\\\\|\/\\)?(?:[a-zA-Z0-9\-_\.@]*)example\.com\/?(\/|[^.].*)?$' # https://regex101.com/r/ZDYhFh/1
|
||
|
|
||
|
- type: status
|
||
|
status:
|
||
|
- 302
|