id: CVE-2024-39250

info:
  name: EfroTech Timetrax v8.3 - Sql Injection
  author: s4e-io,efran
  severity: high
  description: |
    EfroTech Timetrax v8.3 was discovered to contain an unauthenticated SQL injection vulnerability via the q parameter in the search web interface.
  impact: |
    Unauthenticated attackers can execute SQL injection attacks to extract or modify sensitive timetrax database information.
  remediation: |
    Update EfroTech Timetrax to a version later than v8.3 that patches the SQL injection vulnerability.
  reference:
    - https://nvd.nist.gov/vuln/detail/CVE-2024-39250
    - https://www.tenable.com/cve/CVE-2024-39250
    - https://github.com/efrann/CVE-2024-39250
    - https://vuldb.com/?id.272268
  classification:
    epss-score: 0.04927
    epss-percentile: 0.91009
  metadata:
    vendor: efroTech
    product: timetrax
    fofa-query: icon_hash="-661694518"
  tags: cve,cve2024,sqli,timetrax,vuln

flow: http(1) && http(2)

http:
  - raw:
      - |
        GET /Login.aspx HTTP/1.1
        Host: {{Hostname}}

    matchers:
      - type: dsl
        dsl:
          - 'contains(body,"TimeTrax - Cloud HR Software")'
          - 'contains(content_type, "text/html")'
          - "status_code == 200"
        condition: and
        internal: true

  - raw:
      - |
        GET /search.aspx?q=' HTTP/1.1
        Host: {{Hostname}}

    matchers:
      - type: dsl
        dsl:
          - 'contains_all(body,"Incorrect syntax near","Unclosed quotation mark after the character string")'
          - 'contains(content_type, "text/html")'
          - "status_code == 500"
        condition: and
# digest: 490a00463044022000d7d29a2422805c50bfdbe505b9bfcf95106a21e3b49e2a950d37a3d57197ce02200cbf41429ea182570b62f8b12fb82cbd03de3cb389e2b954d74cee01a938a991:922c64590222798bb761d5b6d8e72950