Real-time collaboration for Jupyter Notebooks, Linux Terminals, LaTeX, VS Code, R IDE, and more,
all in one place.
Real-time collaboration for Jupyter Notebooks, Linux Terminals, LaTeX, VS Code, R IDE, and more,
all in one place.
Path: blob/master/documentation/modules/auxiliary/gather/nuuo_cms_file_download.md
Views: 11784
Vulnerable Application
Nuuo CMS Authenticated Arbitrary File Download
The GETCONFIG verb is used by a CMS client to obtain configuration files and other resources from the CMS server. An example request is below:
The FileType determines the directory where the file will be downloaded from. "FileType: 0" will download from the base installation directory (CMS_DIR), while "FileType: 1" will download from "<CMS_DIR>\Images\Map". There are other defined FileType integers, but these have not been investigated in detail.
The vulnerability is in the "FileName" parameter, which accepts directory traversal (..\..\) characters. Therefore, this function can be abused to obtain any files off the file system, including:
CMServer.cfg, a file zipped with the password "NUCMS2007!" that contains the usernames and passwords of all the system users (enabling a less privileged user to obtain the administrator's password)
ServerConfig.cfg, another file zipped with the password "NUCMS2007!" that contains the SQL Server "sa" password as well the FTP server username and password
Any other sensitive files in the drive where CMS Server is installed.
This module works in the following way:
if a SESSION number is present, uses that to login
if not, tries to authenticate with USERNAME and PASSWORD
Due to the lack of ZIP encryption support in Metasploit, the module prints a warning indicating that the archive cannot be unzipped in Msf.
NUUO Central Management Server (CMS): all versions up to and including 3.5.0
The following versions were tested:
1.5.2 OK
2.1.0 OK
2.3.2 OK
2.4.0 OK
2.6.0 OK
2.9.0 OK
2.10.0 OK
3.1 OK
3.3 OK
3.5 OK