EC-Council
312-92 · Question #60
Malory is creating a webpage in PHP where users will have to logon to gain access to certain areas of the site. Malory is concerned that malicious users might try to exploit her site, so she decides…
The correct answer is A. SQL injection. See the full explanation below for the reasoning.
Question
Malory is creating a webpage in PHP where users will have to logon to gain access to certain areas of the site. Malory is concerned that malicious users might try to exploit her site, so she decides to use the following code to prevent some attacks. What is Malory trying to prevent here? $username = addslashes($_POST["username"]); $password = addslashes($_POST["password"]);
Options
- ASQL injection
- BCSS attack
- CReflected mode XSS attack
- DCSRF attack
How the community answered
(57 responses)- A72% (41)
- B4% (2)
- C7% (4)
- D18% (10)
Community Discussion
No community discussion yet for this question.