slawkens/myaac

creatures.php / monsters.php XSS

Closed this issue · 1 comments

Description:

You can execute JS code sent in URL.

Steps To Reproduce:

Visit acc. maker with URL ?subtopic=creatures&creature=<script>alert()</script>

It shows JS alert. It should not.

Replace:

with:

echo "Monster with name <b>" . htmlspecialchars($monster_name) . "</b> doesn't exist.";

Thanks!