Quizzes.technology

πŸ›‘οΈ Free practice test question from: DOM for Open Redirect Attack (Security+)

Challenging Question
DOM for Open Redirect AttackSecurity+

A social media platform has a feature that allows users to customize their profile pages with different themes. After selecting a theme, users are redirected to their profile page. The redirection uses a URL parameter redirect to specify the destination page, which is handled by client-side JavaScript that reads the parameter and sets window.location to its value without any validation. An attacker notices this behavior and crafts a link that, when clicked, redirects users to a malicious website.

Which of the following would be the BEST way to mitigate DOM for Open Redirect vulnerability while maintaining the redirection functionality?

πŸ’¬ Discussion and Feedback

Share your thoughts, provide feedback, or discuss the question and answer below. You can also help others by answering their questions or providing additional information. Thank you for contributing! πŸ™

Comments

No comments yet. Be the first to comment!