Skip to content
Sharp

Engineering Interviews · interview question

During a code review, you notice a method that handles user authentication without input validation. What is the main risk?

Multiple choiceHardchapter-20-curatedpremiumengineering-interviewsjvm-trivia
Choose one answer
Answer and explanation

Correct answer

A. The application is vulnerable to injection attacks.

Why

Lack of input validation in user authentication processes can lead to injection attacks, such as SQL injection, where attackers can manipulate input to access or compromise data. Ensuring robust input validation is vital for application security.

Test yourself on Engineering Interviews

A free test with instant, explained results. No account needed.

Start free test
All Engineering Interviews questions →