Private GIT

Skip to content
Snippets Groups Projects
Unverified Commit 1960bd24 authored by Gary Allan's avatar Gary Allan
Browse files

Bugfix: Restrict find_full_subnets.php to CLI

find_full_subnets.php does not verify if the user is authorized to access the data, and if the script was started from a command line.

Reported by ovprophet
parent c3d33be5
No related branches found
No related tags found
No related merge requests found
<?php
# script can only be run from cli
if(php_sapi_name()!="cli") { die("This script can only be run from cli!"); }
# include required scripts
require_once( dirname(__FILE__) . '/../functions.php' );
......@@ -40,4 +43,3 @@ if (isset($out)) {
// do something with output
print_r($out);
}
?>
\ No newline at end of file
......@@ -7,6 +7,7 @@
Security Fixes:
----------------------------
+ XSS (reflected) in 'bw-calulator-result.php';
+ Restrict find_full_subnets.php to CLI;
== 1.5.0
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment