CCNP 350-401 ENCOR Question 628 DISCUSSION
« Back to Main MenuHow can an engineer prevent basic replay attacks from people who try to brute force a system via REST API?
A. Add a timestamp to the request In the API header.
B. Use a password hash
C. Add OAuth to the request in the API header.
D. Use HTTPS
How can an engineer prevent basic replay attacks from people who try to brute force a system via REST API?
A. Add a timestamp to the request In the API header.
B. Use a password hash
C. Add OAuth to the request in the API header.
D. Use HTTPS
Correct Answer: A
Here's the list of best practices in securing RESTful API.
- Always Use HTTPS - Traffic must be encrypted
- Never expose information on URLs - as this can be captured in web server logs, which makes them easily exploitable.
- Consider Oauth
- Adding Timestamp in Request - This will prevent very basic replay attacks from people who are trying to brute force your system
- Input Parameter Validation - Put strong validation checks and reject the request immediately if validation fails.
- 6. Use Auditing and Logging - Any subject or entity can be audited