Medium
XSS (Reflected) level Medium on DVWA
vulnerabilities/xss_r/source/medium.php
<?php
β
header ("X-XSS-Protection: 0");
β
// Is there any input?
if( array_key_exists( "name", $_GET ) && $_GET[ 'name' ] != NULL ) {
// Get input
$name = str_replace( '<script>', '', $_GET[ 'name' ] );
β
// Feedback for end user
echo "<pre>Hello ${name}</pre>";
}
β
?> Mencari Informasi
<script>alert('Hacked')</script>
Melakukan Serangan


Last updated