Exploit databaseDownload repository ZIP
GH-91766cd831e73fd286b7f783b3656967
108krishna108/dvw
Sources for CVE-2023-39848
53 sourcesPreferred order: Exploit-DB, Metasploit, then GitHub repositories by stars. Open preferred source
Repository files8
108krishna108/dvwRevision 7b9477fe33a9
- ↑..Parent directory
- high.js
- high.php
- impossible.js
- impossible.php
- jsonp.php
- jsonp_impossible.php
- low.php
- medium.php
Files from this repository share one source choice. Supporting files may cover other vulnerabilities.
vulnerabilities/csp/source/impossible.php
PHP · 617 bytes<?php
$headerCSP = "Content-Security-Policy: script-src 'self';";
header($headerCSP);
?>
<?php
if (isset ($_POST['include'])) {
$page[ 'body' ] .= "
" . $_POST['include'] . "
";
}
$page[ 'body' ] .= '
<form name="csp" method="POST">
<p>Unlike the high level, this does a JSONP call but does not use a callback, instead it hardcodes the function to call.</p><p>The CSP settings only allow external JavaScript on the local server and no inline code.</p>
<p>1+2+3+4+5=<span id="answer"></span></p>
<input type="button" id="solve" value="Solve the sum" />
</form>
<script src="source/impossible.js"></script>
';