exam questions

Exam PT0-001 All Questions

View all questions & answers for the PT0-001 exam

Exam PT0-001 topic 1 question 172 discussion

Actual exam question from CompTIA's PT0-001
Question #: 172
Topic #: 1
[All PT0-001 Questions]

A penetration tester is assessing the security of a web form for a client and enters `;id` in one of the fields. The penetration tester observes the following response:

Based on the response, which of the following vulnerabilities exists?

  • A. SQL injection
  • B. Session hijacking
  • C. Command injection
  • D. XSS/XSRF
Show Suggested Answer Hide Answer
Suggested Answer: C 🗳️
Reference:
https://null-byte.wonderhowto.com/how-to/find-exploits-get-root-with-linux-exploit-suggester-0206005/

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
hthb
Highly Voted 3 years, 11 months ago
https://portswigger.net/support/using-burp-to-test-for-os-command-injection-vulnerabilities
upvoted 9 times
...
miabe
Most Recent 2 years, 10 months ago
Selected Answer: C
looks good to me
upvoted 1 times
...
CapCrunch
3 years, 10 months ago
C The following PHP code snippet is vulnerable to a command injection attack: <?php print(“Please specify the name of the file to delete”); print(“<p>”); $file=$_GET[‘filename’]; system(“rm $file”); ?> The following request and response is an example of a successful attack: Request http://127.0.0.1/delete.php?filename=bob.txt;id Response Please specify the name of the file to delete uid=33(www-data) gid=33(www-data) groups=33(www-data) Source: Eample 6 https://owasp.org/www-community/attacks/Command_Injection
upvoted 4 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago