Arbitrary Code Execution via pathtoclam config setting
This bug is related to bug #1055232
The ability of the administrator to set the path to clamav can be
abused. For instance changing the path to clamav from '/path/to/av' to
malicious uploaded file to be executed. This requires that the saved file
is set to executable on upload, which currently it is.
They could also potentially set it to /bin/bash, allowing any user to upload
a shell script that doesn't require the executable bit set to run.
- Because installing antivirus will require shell access to the
server it seems reasonable to require setting the path to the AV be
done in a configuration file rather than a settings page. It could be
argued that in web applications generally, admin web access should not
be equivalent to shell access, due to relatively ease of session
compromise (as compared to shell access).
- Uploaded files should not be set to executable.
|visibility:||private → public|
|Changed in mahara:|
|status:||In Progress → Fix Released|