EC0-350 · Question #176
Jeremy is web security consultant for Information Securitas. Jeremy has just been hired to perform contract work for a large state agency in Michigan. Jeremy's first task is to scan all the…
The correct answer is B. This statement will look for users with the name of admin, blank passwords, and email addresses. See the full explanation below for the reasoning.
Question
Jeremy is web security consultant for Information Securitas. Jeremy has just been hired to perform contract work for a large state agency in Michigan. Jeremy's first task is to scan all the company's external websites. Jeremy comes upon a login page which appears to allow employees access to sensitive areas on the website. James types in the following statement in the username field:
SELECT * from Users where username='admin' ?AND password='' AND email like '%@testers.com%' What will the SQL statement accomplish?
Options
- AIf the page is susceptible to SQL injection, it will look in the Users table for usernames of admin
- BThis statement will look for users with the name of admin, blank passwords, and email addresses
- CThis Select SQL statement will log James in if there are any users with NULL passwords
- DJames will be able to see if there are any default user accounts in the SQL database
How the community answered
(15 responses)- B80% (12)
- C7% (1)
- D13% (2)
Community Discussion
No community discussion yet for this question.