Vulny-Code-Static-Analysis/vulns/ssrf.php

9 lines
222 B
PHP

<?php
if(isset($_GET['r'])) {
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $_GET['r']);
curl_setopt($ch, CURLOPT_HEADER, 0);
curl_exec($ch);
curl_close($ch);
}
?>