Improper Access Control in alanaktion/mchostpanel
Reported on
Sep 10th 2021
✍️ Description
The php file install.php
creates an admin account using POST parameter user
, pass
, dir
, ram
, port
without any access control enforced nor check if the admin account has been created nor check if the file .installed
exists before account creation.
It is possible for any network user who can access install.php
to create a high privileged account, compromising the integrity and confidentiality of the application.
Remediation
Check if file .installed
exists before creating admin account.
Occurrences
Thanks for all the detail in the report, it is really helpful to quickly verify the issue.
I was apparently much worse at web dev many years ago. Only checking for the file when rendering the HTML is incredibly dumb.
@vikychoi - we cannot assign a CVE here as this software is not distributable through a package or distribution mechanism.