Exploit databaseDownload repository ZIP
GH-3baece89601ed5be4b6e9a7af9edf773
advancedsecurity-examples/php_3rdparty_example
Sources for CVE-2023-39848
53 sourcesPreferred order: Exploit-DB, Metasploit, then GitHub repositories by stars. Open preferred source
Repository files4
advancedsecurity-examples/php_3rdparty_exampleRevision 04072ae33804
Files from this repository share one source choice. Supporting files may cover other vulnerabilities.
vulnerabilities/xss_r/source/impossible.php
PHP · 413 bytes<?php
// Is there any input?
if( array_key_exists( "name", $_GET ) && $_GET[ 'name' ] != NULL ) {
// Check Anti-CSRF token
checkToken( $_REQUEST[ 'user_token' ], $_SESSION[ 'session_token' ], 'index.php' );
// Get input
$name = htmlspecialchars( $_GET[ 'name' ] );
// Feedback for end user
$html .= "<pre>Hello {$name}</pre>";
}
// Generate Anti-CSRF token
generateSessionToken();
?>