Answers for the TryHackMe OWASP API Security Top 10 – 2 Room

The OWASP API Security Top 10 – 2 is a subscriber only room which part of the Security Engineer Learning Path from TryHackMe. The room is available at: https://tryhackme.com/r/room/owaspapisecuritytop10d0

1.1 Is it a good practice to blindly insert/update user-provided data in the database (yea/nay)?

Answer: nay

1.2 What would be the returned credit value after performing Question#2?

Answer: 50

2.1 Is it an excellent approach to show error logs from the stack trace to general visitors (yea/nay)?

Answer: nay

2.2 What is the HTTP response code?

Answer: 500

2.3 What is the Error ID number in the HTTP response message?

Answer: 1401

3.1 Can injection attacks be carried out to extract data from the database (yea/nay)?

Answer: yea

3.2 Can injection attacks result in remote code execution (yea/nay)?

Answer: yea

3.3 What is the HTTP response code if a user enters an invalid username or password?

Answer: 403

4.1 Is it good practice to host all APIs on the same server (yea/nay)?

Answer: nay

4.2 What is the amount of balance associated with user Alice?

Answer: 100

4.3 What is the country of the user Alice?

Answer: USA

5.1 Should the API logs be publically accessible so that the attacker must know they are being logged (yea/nay)?

Answer: nay

5.2 What is the HTTP response code in case of successful logging of user information?

Answer: 200

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.