External URL in XSS test cases
phra opened this issue · 1 comments
phra commented
RenwaX23 commented
I control this domains and there isn't any thing to worry about you can change them to your URL, source code of the file is:
<?php
header("Content-Type: application/javascript");
function cors() {
if (isset($_SERVER['HTTP_ORIGIN'])) {
header("Access-Control-Allow-Origin: {$_SERVER['HTTP_ORIGIN']}");
header('Access-Control-Allow-Credentials: true');
}
if ($_SERVER['REQUEST_METHOD'] == 'OPTIONS') {
if (isset($_SERVER['HTTP_ACCESS_CONTROL_REQUEST_METHOD']))
header("Access-Control-Allow-Methods: GET, POST, OPTIONS, PUT, DELETE");
if (isset($_SERVER['HTTP_ACCESS_CONTROL_REQUEST_HEADERS']))
header("Access-Control-Allow-Headers: {$_SERVER['HTTP_ACCESS_CONTROL_REQUEST_HEADERS']}");
exit(0);
}
echo "javascript:top.pinghost(1)//<img src=x onerror=top.pinghost(1)>";
}
cors();
?>