QuestionQ18

VerifiedWeb Application Hacking

A penetration tester is assessing a web server that permits unrestricted file uploads. The server accepts files without adequately validating or sanitizing file types.

Which technique should the tester use to exploit this weakness and potentially gain control of the server?

Explanation

Uploading a server-side shell script disguised as an image can bypass weak file-type controls. If the server stores the upload in an executable web-accessible location and processes it as code, the shell can be invoked to run commands with the web server’s privileges.

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!