exam questions

Exam CAS-004 All Questions

View all questions & answers for the CAS-004 exam

Exam CAS-004 topic 1 question 87 discussion

Actual exam question from CompTIA's CAS-004
Question #: 87
Topic #: 1
[All CAS-004 Questions]

Given the following log snippet from a web server:

Which of the following BEST describes this type of attack?

  • A. SQL injection
  • B. Cross-site scripting
  • C. Brute-force
  • D. Cross-site request forgery
Show Suggested Answer Hide Answer
Suggested Answer: A 🗳️

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
RevZig67
Highly Voted 3 years ago
Selected Answer: A
I think this is showing a SQL injection.
upvoted 8 times
...
Rj100
Highly Voted 2 years, 3 months ago
Keyword schema, deals with database layout. Hence SQL
upvoted 5 times
...
23169fd
Most Recent 10 months, 1 week ago
Selected Answer: A
Each log entry shows a request made to the endpoint check_user.php with a parameter userid containing SQL code. The use of keywords like SELECT, FROM, UNION ALL SELECT, and the manipulation of functions and numeric calculations within the parameter value are characteristic of SQL injection attempts
upvoted 1 times
...
OdinAtlasSteel
1 year, 6 months ago
Selected Answer: A
In the given log snippets, the requests to the check_user.php script contain SQL-like statements in the URL parameters such as userid: SELECT statements injected with specific SQL syntax into the userid parameter. Use of UNION ALL SELECT to join maliciously crafted SQL statements. Attempts to perform database operations like SELECT, CONCAT, and UNION. These attempts to manipulate the SQL queries through the URL parameters in the requests suggest an attempt to exploit potential vulnerabilities in the application's database layer, which is characteristic of SQL injection attacks. Therefore, the described attack pattern aligns with option A: SQL injection.
upvoted 1 times
...
BiteSize
1 year, 10 months ago
Selected Answer: A
Source: Verifying each answer against Chat GPT, my experience, other test banks, a written book, and weighing in the discussion from all users to create a 100% accurate guide for myself before I take the exam. (It isn't easy because of the time needed, but it is doing my diligence)
upvoted 1 times
...
hidady
2 years, 4 months ago
A is the correct answer "SQL injection"
upvoted 2 times
...
ryanzou
2 years, 6 months ago
Selected Answer: A
It's definitely SQL injection, no doubt
upvoted 3 times
...
[Removed]
2 years, 6 months ago
Selected Answer: A
SQL injection usually occurs when you ask a user for input, like their username/userid, and instead of a name/id https://www.w3schools.com/sql/sql_injection.asp
upvoted 3 times
...
ts260
2 years, 8 months ago
Selected Answer: A
Attempted SQL injection into userid
upvoted 3 times
...
dangerelchulo
2 years, 8 months ago
Selected Answer: A
Clearly trying to pass SQL code for the user field, this is clearly an example of SQL injection. Cross site forgery is when you try to bypass or change the web path to by pass the index.
upvoted 4 times
...
EZPASS
2 years, 8 months ago
I agree. 'A' seems to be correct.
upvoted 2 times
...
Agrona
2 years, 9 months ago
Selected Answer: A
Clearly shows SQL queries.
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