frncscrlnd's writeups

Writeups from challenges and CTFs i take part in.


Project maintained by frncscrlnd Hosted on GitHub Pages — Theme by mattgraham

Stage 2

What you have to do:
Inject the following JavaScript command: alert(document.domain);

Hint: close the current tag and add SCRIPT tag…

As hinted, let’s check for open tags; this time, the response page doesn’t display user input. 2.1 However, the input is reflected in the “value” attribute in the form being unsanitized, as it displays <input type="text" name="p1" size="50" value="<script>alert(document.domain)</script>"> 2.2 This means that we can close the attribute and the input tag by typing and submitting "><script>alert(document.domain)</script> in the textbox. 2.3