Kizspy Question: 42
(Choose 1 answer)
An attacker uploads a .htaccess file with the following content:
AddType application/x-httpd-php .jpg
What is the likely goal of the attacker, and how can this be prevented?
A. The attacker is trying to execute the scripts in .jpg files; prevent this by disallowing .htaccess file uploads
and disabling .htaccess overrides.
B. The attacker is trying to upload large images in .jpg files; prevent this by limiting file upload size.
C. The attacker is trying to steal session cookies by execute the scripts in .jpg file; prevent this by using
secure cookies.
D. The attacker is trying to bypass authentication by execute the scripts in .jpg file; prevent this by using
stronger passwords.