I am doing a security audit on my friend's website. One functionality allows users to download files from html. The only check is to rename the file to the current timestamp.
I was wondering if there is a way to download a malicious file so that when the user navigates to the URL for that file, it executes the code (server side)?
I tried to load the hello-world php script, but it just displays the code, not executes it. If the file extension was .php, it would be executed, however there is no file extension (since the file was renamed).
EDIT: I have access to the full source code as part of a security audit. It would be better if I could solve this problem without using it, but if necessary I can answer any questions about the source code.
source share