vendor:
nconf
by:
haidao
7,5
CVSS
HIGH
File Read/Write
264
CWE
Product Name: nconf
Affected Version From: nconf 1.3
Affected Version To: nconf 1.3
Patch Exists: N/A
Related CWE: N/A
CPE: N/A
Metasploit:
N/A
Other Scripts:
N/A
Tags: N/A
CVSS Metrics: N/A
Nuclei References:
N/A
Nuclei Metadata: N/A
Platforms Tested: Apache/2.2.15 (Centos) PHP/5.3.3
2013
nconf file read and write exploit
nconf can modify the config file of nagios and save it to the server, but haven't check the file's direction and name, so we can read and write any files in the server under the privileges of apache. An attacker can send a POST request with the directory and filename to read the file or directory, or change the directory or filename. If the filename is null, the attacker can get a list of the directory. An attacker can also send a POST request with the directory, filename, action, and content to write the content into the file. If the magic_quote is on, the attacker must pay attention to the ' and ".
Mitigation:
Ensure that the file and directory permissions are properly configured and that the application is validating user input.