vendor:
OneOrZero
by:
Ams
6.5
CVSS
MEDIUM
Remote File Upload Vulnerability
434
CWE
Product Name: OneOrZero
Affected Version From: 1.6.*
Affected Version To: 1.6.*
Patch Exists: Unknown
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: N/A
Unknown
OneOrZero 1.6.* Perl exploit
In 'tinfo.php' script there are function named uploadAttachment() through which we are able to upload files. It does not checks what the file is uploaded. First of all it uploads small shell, then, due to unknown shell name, it bruteforces it. (Uploaded shell name is concatenation of original filename, unix timestamp and substracted microseconds from time.) Then it uploads new shell through small shell. (Script saves to DB what has been uploaded, but if magic_quotes_gpc=off exploit will disable this logging via SQl-inj.)
Mitigation:
Ensure that the application validates the file type before uploading it.