0 votes
In Exercise 4, question 1e, I submitted the following answer:

https://websec.cs.uni-paderborn.de/websec/api/xss/challenge?verifier=8&firstname=Example&lastname=User&credit_card=DE%206666%206666%206666%206666&access_code=111&session_id=af324dfg345dg435fds&total=%22%3E%3Cimg%20src=x%20onerror=alert(document.location)%3E

Although this successfully triggered the alert, it was marked wrong

Additionally, in question 2c, I used :

?ifr=' onerror=alert(document.domain) x='

which also executes as intended, yet was also marked incorrect.

Could you please clarify why these responses were marked wrong despite producing the expected behavior?

(Edit: I reposted part of the question as a separate one to keep the exercise categories correct. -JR)
in ex04 by
edited by
edit history

1 Answer

0 votes
For 1e) you were supposed to provide the parameter URL encoded, not the whole URL. So the answer is in an incorrect format.

2c) does not work, because you use the onerror handler instead of onload. onerror is only used if the iframe cannot load the content, which it can, as example.com can be framed.
by (2.3k points)
edit history