id: CVE-2024-54764

info:
  name: ipTIME A2004 - Unauthorized Access
  author: ritikchaddha
  severity: medium
  description: |
    An access control issue exists in the component /login/hostinfo2.cgi of ipTIME A2004 v12.17.0 that allows attackers to obtain sensitive information without authentication. The vulnerability allows unauthenticated access to device settings and configuration information.
  impact: |
    Unauthenticated attackers can access sensitive device settings and configuration information through the hostinfo2.cgi endpoint.
  remediation: |
    Update ipTIME A2004 router to a version later than 12.17.0 that addresses the unauthorized access vulnerability.
  reference:
    - https://github.com/Shuanunio/CVE_Requests/blob/main/ipTIME/A2004/ipTIME_A2004_unauthorized_access_vulnerability_second.md
    - https://nvd.nist.gov/vuln/detail/CVE-2024-54764
  classification:
    cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N
    cvss-score: 6.5
    cve-id: CVE-2024-54764
    cwe-id: CWE-284
    epss-score: 0.01044
    epss-percentile: 0.60747
  metadata:
    verified: true
    max-request: 1
    vendor: ipTIME
    product: A2004
    shodan-query: http.title:"ipTIME"
    fofa-query: title="ipTIME"
  tags: cve,cve2024,iptime,router,unauth,exposure,vkev,vuln

http:
  - method: GET
    path:
      - "{{BaseURL}}/login/hostinfo2.cgi"

    matchers-condition: and
    matchers:
      - type: word
        part: response
        words:
          - "product_name="
          - "system_type="
        condition: and

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

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