ExamGecko
Question list
Search
Search

List of questions

Search

Related questions











Question 284 - PT0-002 discussion

Report
Export

When accessing the URL http://192.168.0-1/validate/user.php, a penetration tester obtained the following output:

..d index: eid in /apache/www/validate/user.php line 12

..d index: uid in /apache/www/validate/user.php line 13

..d index: pw in /apache/www/validate/user.php line 14

..d index: acl in /apache/www/validate/user.php line 15

A.
Lack of code signing
Answers
A.
Lack of code signing
B.
Incorrect command syntax
Answers
B.
Incorrect command syntax
C.
Insufficient error handling
Answers
C.
Insufficient error handling
D.
Insecure data transmission
Answers
D.
Insecure data transmission
Suggested answer: C

Explanation:

The most probable cause for this output is insufficient error handling, which is a coding flaw that occurs when a program does not handle errors or exceptions properly or gracefully. Insufficient error handling can result in unwanted or unexpected behavior, such as crashes, hangs, or leaks. In this case, the output shows that the program is displaying warning messages that indicate undefined indexes in the user.php file. These messages reveal the names of the variables and the file path that are used by the program, which can expose sensitive information or clues to an attacker. The program should have implemented error handling mechanisms, such as try-catch blocks, error logging, or sanitizing output, to prevent these messages from being displayed or to handle them appropriately. The other options are not plausible causes for this output. Lack of code signing is a security flaw that occurs when a program does not have a digital signature that verifies its authenticity and integrity. Incorrect command syntax is a user error that occurs when a command is entered with wrong or missing parameters or options. Insecure data transmission is a security flaw that occurs when data is sent over a network without encryption or protection.

asked 02/10/2024
First Last
36 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first