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.
  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.80916
    epss-percentile: 0.98730
  metadata:
    vendor: efroTech
    product: timetrax
    fofa-query: icon_hash="-661694518"
  tags: cve,cve2024,sqli,timetrax

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