nuclei-templates/cves/2021/CVE-2021-25033.yaml

28 lines
980 B
YAML

id: noptin-open-redirect
info:
name: Noptin < 1.6.5 - Open Redirect
author: dhiyaneshDk
severity: low
description: Noptin < 1.6.5 is susceptible to an open redirect vulnerability. The plugin does not validate the "to" parameter before redirecting the user to its given value, leading to an open redirect issue.
reference:
- https://wpscan.com/vulnerability/c2d2384c-41b9-4aaf-b918-c1cfda58af5c
- https://plugins.trac.wordpress.org/changeset/2639592
- https://nvd.nist.gov/vuln/detail/CVE-2021-25033
classification:
cve-id: CVE-2021-25033
tags: wordpress,redirect,wp-plugin,noptin,wp
requests:
- method: GET
path:
- "{{BaseURL}}/?noptin_ns=email_click&to=https://example.com"
matchers:
- type: regex
part: header
regex:
- '(?m)^(?:Location\s*?:\s*?)(?:https?:\/\/|\/\/|\/\\\\|\/\\)?(?:[a-zA-Z0-9\-_\.@]*)example\.com\/?(\/|[^.].*)?$' # https://regex101.com/r/ZDYhFh/1
# Enhanced by mp on 2022/04/13