XSPwn Solution
- Hit the maximum number of nodes, to trigger a node deletion.
- When the first node is deleted, the memory taken by that node is freed with
free(curr)
but the HEAD
is not updated.
- Insert another node, overwriting
HEAD->name
in the next malloc()
and strcpy()
- By overwriting with the correct memory address, we can point to a previous name that failed the XSS check.
The solution works once in every 10 tries on average. The exploit will automatically retry until it works.
Full Solution
| Home