docker-vulnerable-dvwa/dvwa/vulnerabilities/xss_r/source/medium.php

13 lines
253 B
PHP
Raw Normal View History

2016-12-02 19:19:11 +00:00
<?php
// 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
$html .= "<pre>Hello ${name}</pre>";
}
?>