Unrestricted file write vulnerabilities allow attackers to write file such as PHP files, in locations where the web server user has access to write. This may allow an attacker to write files with malicious content and may lead to remote code execution.
An attacker must be authenticated to perform this attack.
Where the Issue Occurred
The following code snippet displays the usage of the
file_put_contents function in PHP within the lh-ehr application:
file_put_contents($_POST['docid'], $_POST['content']); echo file_get_contents($_POST['docid']);
- Issue Reported: 23rd July 2018
- Issue Resolved:
- Blog Post Published: 7th August 2018
- Applied for CVE: 8th August 2018