ExamGecko
Question list
Search
Search

List of questions

Search

Related questions











Question 369 - PT0-002 discussion

Report
Export

During an assessment, a penetration tester discovers the following code sample in a web application:

'(&(userid=*)(userid=*))(I(userid=*)(userPwd=(SHAl}a9993e364706816aba3e25717850c26c9cd0d89d==))

Which of the following injections is being performed?

A.
Boolean SQL
Answers
A.
Boolean SQL
B.
Command
Answers
B.
Command
C.
Blind SQL
Answers
C.
Blind SQL
D.
LDAP
Answers
D.
LDAP
Suggested answer: D

Explanation:

The code sample provided involves LDAP (Lightweight Directory Access Protocol) query syntax, not SQL or command injection syntax. LDAP injections occur when user-supplied inputs are not properly sanitized before being incorporated into LDAP queries. The given code demonstrates a potential LDAP injection point, where an attacker might manipulate the (userid=*) part to execute unauthorized queries or access unauthorized information within the LDAP directory. Boolean and Blind SQL injections, as well as Command injections, do not apply to LDAP query syntax.

asked 02/10/2024
Priya Ketkar
36 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first