im working on trying to find vulnerabilities on a fake website for class and I was wondering how to launch XSS code into this input field?
- This is the code from the website:
<form name="friendForm" method="POST" action="/Tunestore/addfriend.do">
Friend name: <input type="text" name="friend" value=""
<script>alert(1)</script>"><br>
<input type="submit" value="Submit">
</form>
I have tried this but it didn't work:
"> <script>alert(1)</script>" onfocus="alert(1)"" onclick="alert(1)
<p>to the site, if the user then enters some html, including script tags, that JS will be executed by all clients visiting the page, not just by your own browser, which isn't really a good attack vector