1 | <?php |
||
40 | class curl_fetch_web_data |
||
41 | { |
||
42 | /** |
||
43 | * Set the default items for this class |
||
44 | * |
||
45 | * @var array $default_options |
||
46 | */ |
||
47 | private $default_options = array( |
||
48 | CURLOPT_RETURNTRANSFER => 1, // Get returned value as a string (don't output it) |
||
49 | CURLOPT_HEADER => 1, // We need the headers to do our own redirect |
||
50 | CURLOPT_FOLLOWLOCATION => 0, // Don't follow, we will do it ourselves so safe mode and open_basedir will dig it |
||
51 | CURLOPT_USERAGENT => 'Mozilla/5.0 (Windows NT 6.1; WOW64; rv:11.0) Gecko Firefox/11.0', // set a normal looking useragent |
||
52 | CURLOPT_CONNECTTIMEOUT => 15, // Don't wait forever on a connection |
||
53 | CURLOPT_TIMEOUT => 90, // A page should load in this amount of time |
||
54 | CURLOPT_MAXREDIRS => 5, // stop after this many redirects |
||
55 | CURLOPT_ENCODING => 'gzip,deflate', // accept gzip and decode it |
||
56 | CURLOPT_SSL_VERIFYPEER => 0, // stop cURL from verifying the peer's certificate |
||
57 | CURLOPT_SSL_VERIFYHOST => 0, // stop cURL from verifying the peer's host |
||
58 | CURLOPT_POST => 0, // no post data unless its passed |
||
59 | ); |
||
60 | |||
61 | /** |
||
62 | * @var int Maximum number of redirects |
||
63 | */ |
||
64 | public $max_redirect; |
||
65 | |||
66 | /** |
||
67 | * @var array An array of cURL options |
||
68 | */ |
||
69 | public $user_options = array(); |
||
70 | |||
71 | /** |
||
72 | * @var string Any post data as form name => value |
||
73 | */ |
||
74 | public $post_data; |
||
75 | |||
76 | /** |
||
77 | * @var array An array of cURL options |
||
78 | */ |
||
79 | public $options; |
||
80 | |||
81 | /** |
||
82 | * @var int ??? |
||
83 | */ |
||
84 | public $current_redirect; |
||
85 | |||
86 | /** |
||
87 | * @var array Stores responses (url, code, error, headers, body) in the response array |
||
88 | */ |
||
89 | public $response = array(); |
||
90 | |||
91 | /** |
||
92 | * @var string The header |
||
93 | */ |
||
94 | public $headers; |
||
95 | |||
96 | /** |
||
97 | * Start the curl object |
||
98 | * - allow for user override values |
||
99 | * |
||
100 | * @param array $options An array of cURL options |
||
101 | * @param int $max_redirect Maximum number of redirects |
||
102 | */ |
||
103 | public function __construct($options = array(), $max_redirect = 3) |
||
109 | |||
110 | /** |
||
111 | * Main calling function, |
||
112 | * - will request the page data from a given $url |
||
113 | * - optionally will post data to the page form if post data is supplied |
||
114 | * - passed arrays will be converted to a post string joined with &'s |
||
115 | * - calls set_options to set the curl opts array values based on the defaults and user input |
||
116 | * |
||
117 | * @param string $url the site we are going to fetch |
||
118 | * @param array $post_data any post data as form name => value |
||
119 | * @return object An instance of the curl_fetch_web_data class |
||
120 | */ |
||
121 | public function get_url_data($url, $post_data = array()) |
||
135 | |||
136 | /** |
||
137 | * Makes the actual cURL call |
||
138 | * - stores responses (url, code, error, headers, body) in the response array |
||
139 | * - detects 301, 302, 307 codes and will redirect to the given response header location |
||
140 | * |
||
141 | * @param string $url The site to fetch |
||
142 | * @param bool $redirect Whether or not this was a redirect request |
||
143 | * @return void|bool Sets various properties of the class or returns false if the URL isn't specified |
||
144 | */ |
||
145 | private function curl_request($url, $redirect = false) |
||
194 | |||
195 | /** |
||
196 | * Used if being redirected to ensure we have a fully qualified address |
||
197 | * |
||
198 | * @param string $last_url The URL we went to |
||
199 | * @param string $new_url The URL we were redirected to |
||
200 | * @return string The new URL that was in the HTTP header |
||
201 | */ |
||
202 | private function get_redirect_url($last_url = '', $new_url = '') |
||
217 | |||
218 | /** |
||
219 | * Used to return the results to the calling program |
||
220 | * - called as ->result() will return the full final array |
||
221 | * - called as ->result('body') to just return the page source of the result |
||
222 | * |
||
223 | * @param string $area Used to return an area such as body, header, error |
||
224 | * @return string The response |
||
225 | */ |
||
226 | public function result($area = '') |
||
236 | |||
237 | /** |
||
238 | * Will return all results from all loops (redirects) |
||
239 | * - Can be called as ->result_raw(x) where x is a specific loop results. |
||
240 | * - Call as ->result_raw() for everything. |
||
241 | * |
||
242 | * @param string $response_number Which response we want to get |
||
243 | * @return array|string The entire response array or just the specified response |
||
244 | */ |
||
245 | public function result_raw($response_number = '') |
||
255 | |||
256 | /** |
||
257 | * Takes supplied POST data and url encodes it |
||
258 | * - forms the date (for post) in to a string var=xyz&var2=abc&var3=123 |
||
259 | * - drops vars with @ since we don't support sending files (uploading) |
||
260 | * |
||
261 | * @param array|string $post_data The raw POST data |
||
262 | * @return string A string of post data |
||
263 | */ |
||
264 | private function build_post_data($post_data) |
||
280 | |||
281 | /** |
||
282 | * Sets the final cURL options for the current call |
||
283 | * - overwrites our default values with user supplied ones or appends new user ones to what we have |
||
284 | * - sets the callback function now that $this is existing |
||
285 | * @return void |
||
286 | */ |
||
287 | private function set_options() |
||
309 | |||
310 | /** |
||
311 | * Called to initiate a redirect from a 301, 302 or 307 header |
||
312 | * - resets the cURL options for the loop, sets the referrer flag |
||
313 | * |
||
314 | * @param string $target_url The URL we want to redirect to |
||
315 | * @param string $referer_url The URL that we're redirecting from |
||
316 | */ |
||
317 | private function redirect($target_url, $referer_url) |
||
324 | } |
||
325 | |||
326 | ?> |
||
$this->options
can contain request data and is used in request header context(s) leading to a potential security vulnerability.26 paths for user data to reach this point
$_GET,
and$request
is assigned in proxy.php on line 78$_GET,
and$request
is assignedin proxy.php on line 78
$request
is passed to ProxyServer::cacheImage()in proxy.php on line 85
$request
is passed to curl_fetch_web_data::get_url_data()in proxy.php on line 169
$url
is passed through str_replace(), andstr_replace(' ', '%20', $url)
is passed to curl_fetch_web_data::curl_request()in Sources/Class-CurlFetchWeb.php on line 131
in Sources/Class-CurlFetchWeb.php on line 151
in Sources/Class-CurlFetchWeb.php on line 162
$_REQUEST,
and$_REQUEST['set_gz']
is passed to fetch_web_data() in Sources/ManageSmileys.php on line 1448$_REQUEST,
and$_REQUEST['set_gz']
is passed to fetch_web_data()in Sources/ManageSmileys.php on line 1448
$url
is passed to curl_fetch_web_data::get_url_data()in Sources/Subs-Package.php on line 3141
$url
is passed through str_replace(), andstr_replace(' ', '%20', $url)
is passed to curl_fetch_web_data::curl_request()in Sources/Class-CurlFetchWeb.php on line 131
in Sources/Class-CurlFetchWeb.php on line 151
in Sources/Class-CurlFetchWeb.php on line 162
$_GET,
and$_GET['package']
is passed to fetch_web_data() in Sources/PackageGet.php on line 275$_GET,
and$_GET['package']
is passed to fetch_web_data()in Sources/PackageGet.php on line 275
$url
is passed to curl_fetch_web_data::get_url_data()in Sources/Subs-Package.php on line 3141
$url
is passed through str_replace(), andstr_replace(' ', '%20', $url)
is passed to curl_fetch_web_data::curl_request()in Sources/Class-CurlFetchWeb.php on line 131
in Sources/Class-CurlFetchWeb.php on line 151
in Sources/Class-CurlFetchWeb.php on line 162
$_REQUEST,
and$url . $_REQUEST['package']
is passed to fetch_web_data() in Sources/PackageGet.php on line 601$_REQUEST,
and$url . $_REQUEST['package']
is passed to fetch_web_data()in Sources/PackageGet.php on line 601
$url
is passed to curl_fetch_web_data::get_url_data()in Sources/Subs-Package.php on line 3141
$url
is passed through str_replace(), andstr_replace(' ', '%20', $url)
is passed to curl_fetch_web_data::curl_request()in Sources/Class-CurlFetchWeb.php on line 131
in Sources/Class-CurlFetchWeb.php on line 151
in Sources/Class-CurlFetchWeb.php on line 162
$_POST,
and$_POST['userpicpersonal']
is passed through parse_url(), and$url
is assigned in Sources/Profile-Modify.php on line 3161$_POST,
and$_POST['userpicpersonal']
is passed through parse_url(), and$url
is assignedin Sources/Profile-Modify.php on line 3161
$url['scheme'] . '://' . $url['host'] . (empty($url['port']) ? '' : ':' . $url['port']) . str_replace(' ', '%20', trim($url['path']))
is passed to fetch_web_data()in Sources/Profile-Modify.php on line 3162
$url
is passed to curl_fetch_web_data::get_url_data()in Sources/Subs-Package.php on line 3141
$url
is passed through str_replace(), andstr_replace(' ', '%20', $url)
is passed to curl_fetch_web_data::curl_request()in Sources/Class-CurlFetchWeb.php on line 131
in Sources/Class-CurlFetchWeb.php on line 151
in Sources/Class-CurlFetchWeb.php on line 162
$_POST,
and$_POST['userpicpersonal']
is passed through preg_replace(), andpreg_replace('~action(?:=|%3d)(?!dlattach)~i', 'action-', $_POST['userpicpersonal'])
is passed through str_replace(), and$profile_vars
is assigned in Sources/Profile-Modify.php on line 3223$_POST,
and$_POST['userpicpersonal']
is passed through preg_replace(), andpreg_replace('~action(?:=|%3d)(?!dlattach)~i', 'action-', $_POST['userpicpersonal'])
is passed through str_replace(), and$profile_vars
is assignedin Sources/Profile-Modify.php on line 3223
$profile_vars['avatar']
is passed to downloadAvatar()in Sources/Profile-Modify.php on line 3245
$url
is passed to resizeImageFile()in Sources/Subs-Graphics.php on line 80
$source
is passed to fetch_web_data()in Sources/Subs-Graphics.php on line 340
$url
is passed to curl_fetch_web_data::get_url_data()in Sources/Subs-Package.php on line 3141
$url
is passed through str_replace(), andstr_replace(' ', '%20', $url)
is passed to curl_fetch_web_data::curl_request()in Sources/Class-CurlFetchWeb.php on line 131
in Sources/Class-CurlFetchWeb.php on line 151
in Sources/Class-CurlFetchWeb.php on line 162
$_GET,
and$_GET['did']
is escaped by urlencode() for all (url-encoded) context(s), and'https://download.simplemachines.org/fetch_language.php?version=' . urlencode(strtr($forum_version, array('SMF ' => ''))) . ';fetch=' . urlencode($_GET['did'])
is passed to read_tgz_file() in Sources/ManageLanguages.php on line 243$_GET,
and$_GET['did']
is escaped by urlencode() for all (url-encoded) context(s), and'https://download.simplemachines.org/fetch_language.php?version=' . urlencode(strtr($forum_version, array('SMF ' => ''))) . ';fetch=' . urlencode($_GET['did'])
is passed to read_tgz_file()in Sources/ManageLanguages.php on line 243
$gzfilename
is passed to read_tgz_data()in Sources/Subs-Package.php on line 35
$gzfilename
is passed to fetch_web_data()in Sources/Subs-Package.php on line 75
$url
is passed to curl_fetch_web_data::get_url_data()in Sources/Subs-Package.php on line 3141
$url
is passed through str_replace(), andstr_replace(' ', '%20', $url)
is passed to curl_fetch_web_data::curl_request()in Sources/Class-CurlFetchWeb.php on line 131
in Sources/Class-CurlFetchWeb.php on line 151
in Sources/Class-CurlFetchWeb.php on line 162
$_GET,
and$_GET['did']
is escaped by urlencode() for all (url-encoded) context(s), and'https://download.simplemachines.org/fetch_language.php?version=' . urlencode(strtr($forum_version, array('SMF ' => ''))) . ';fetch=' . urlencode($_GET['did'])
is passed to read_tgz_file() in Sources/ManageLanguages.php on line 255$_GET,
and$_GET['did']
is escaped by urlencode() for all (url-encoded) context(s), and'https://download.simplemachines.org/fetch_language.php?version=' . urlencode(strtr($forum_version, array('SMF ' => ''))) . ';fetch=' . urlencode($_GET['did'])
is passed to read_tgz_file()in Sources/ManageLanguages.php on line 255
$gzfilename
is passed to read_tgz_data()in Sources/Subs-Package.php on line 35
$gzfilename
is passed to fetch_web_data()in Sources/Subs-Package.php on line 75
$url
is passed to curl_fetch_web_data::get_url_data()in Sources/Subs-Package.php on line 3141
$url
is passed through str_replace(), andstr_replace(' ', '%20', $url)
is passed to curl_fetch_web_data::curl_request()in Sources/Class-CurlFetchWeb.php on line 131
in Sources/Class-CurlFetchWeb.php on line 151
in Sources/Class-CurlFetchWeb.php on line 162
$_REQUEST,
and$_REQUEST['set_gz']
is escaped by basename() for file context(s), andbasename($_REQUEST['set_gz'])
is passed through strtr(), and$base_name
is assigned in Sources/ManageSmileys.php on line 1433$_REQUEST,
and$_REQUEST['set_gz']
is escaped by basename() for file context(s), andbasename($_REQUEST['set_gz'])
is passed through strtr(), and$base_name
is assignedin Sources/ManageSmileys.php on line 1433
$destination
is assignedin Sources/ManageSmileys.php on line 1442
$destination
is passed to read_tgz_file()in Sources/ManageSmileys.php on line 1482
$gzfilename
is passed to read_tgz_data()in Sources/Subs-Package.php on line 35
$gzfilename
is passed to fetch_web_data()in Sources/Subs-Package.php on line 75
$url
is passed to curl_fetch_web_data::get_url_data()in Sources/Subs-Package.php on line 3141
$url
is passed through str_replace(), andstr_replace(' ', '%20', $url)
is passed to curl_fetch_web_data::curl_request()in Sources/Class-CurlFetchWeb.php on line 131
in Sources/Class-CurlFetchWeb.php on line 151
in Sources/Class-CurlFetchWeb.php on line 162
$_REQUEST,
and$_REQUEST['package']
is escaped by basename() for file context(s), and$destination
is assigned in Sources/ManageSmileys.php on line 1457$_REQUEST,
and$_REQUEST['package']
is escaped by basename() for file context(s), and$destination
is assignedin Sources/ManageSmileys.php on line 1457
$destination
is passed to read_tgz_file()in Sources/ManageSmileys.php on line 1482
$gzfilename
is passed to read_tgz_data()in Sources/Subs-Package.php on line 35
$gzfilename
is passed to fetch_web_data()in Sources/Subs-Package.php on line 75
$url
is passed to curl_fetch_web_data::get_url_data()in Sources/Subs-Package.php on line 3141
$url
is passed through str_replace(), andstr_replace(' ', '%20', $url)
is passed to curl_fetch_web_data::curl_request()in Sources/Class-CurlFetchWeb.php on line 131
in Sources/Class-CurlFetchWeb.php on line 151
in Sources/Class-CurlFetchWeb.php on line 162
$_REQUEST,
and$_REQUEST['package']
is passed through preg_replace(), and$context
is assigned in Sources/Packages.php on line 104$_REQUEST,
and$_REQUEST['package']
is passed through preg_replace(), and$context
is assignedin Sources/Packages.php on line 104
$context
is assignedin Sources/Packages.php on line 107
$context
is assignedin Sources/Packages.php on line 132
$context
is assignedin Sources/Packages.php on line 135
$context
is assignedin Sources/Packages.php on line 141
$packagesdir . '/' . $context['filename']
is passed to read_tgz_file()in Sources/Packages.php on line 152
$gzfilename
is passed to read_tgz_data()in Sources/Subs-Package.php on line 35
$gzfilename
is passed to fetch_web_data()in Sources/Subs-Package.php on line 75
$url
is passed to curl_fetch_web_data::get_url_data()in Sources/Subs-Package.php on line 3141
$url
is passed through str_replace(), andstr_replace(' ', '%20', $url)
is passed to curl_fetch_web_data::curl_request()in Sources/Class-CurlFetchWeb.php on line 131
in Sources/Class-CurlFetchWeb.php on line 151
in Sources/Class-CurlFetchWeb.php on line 162
$_REQUEST,
and$context
is assigned in Sources/Packages.php on line 780$_REQUEST,
and$context
is assignedin Sources/Packages.php on line 780
$context
is assignedin Sources/Packages.php on line 783
$context
is assignedin Sources/Packages.php on line 789
$context
is assignedin Sources/Packages.php on line 792
$context
is assignedin Sources/Packages.php on line 798
$packagesdir . '/' . $context['filename']
is passed to read_tgz_file()in Sources/Packages.php on line 815
$gzfilename
is passed to read_tgz_data()in Sources/Subs-Package.php on line 35
$gzfilename
is passed to fetch_web_data()in Sources/Subs-Package.php on line 75
$url
is passed to curl_fetch_web_data::get_url_data()in Sources/Subs-Package.php on line 3141
$url
is passed through str_replace(), andstr_replace(' ', '%20', $url)
is passed to curl_fetch_web_data::curl_request()in Sources/Class-CurlFetchWeb.php on line 131
in Sources/Class-CurlFetchWeb.php on line 151
in Sources/Class-CurlFetchWeb.php on line 162
$_REQUEST,
and$context
is assigned in Sources/Packages.php on line 1253$_REQUEST,
and$context
is assignedin Sources/Packages.php on line 1253
$packagesdir . '/' . $context['filename']
is passed to read_tgz_file()in Sources/Packages.php on line 1257
$gzfilename
is passed to read_tgz_data()in Sources/Subs-Package.php on line 35
$gzfilename
is passed to fetch_web_data()in Sources/Subs-Package.php on line 75
$url
is passed to curl_fetch_web_data::get_url_data()in Sources/Subs-Package.php on line 3141
$url
is passed through str_replace(), andstr_replace(' ', '%20', $url)
is passed to curl_fetch_web_data::curl_request()in Sources/Class-CurlFetchWeb.php on line 131
in Sources/Class-CurlFetchWeb.php on line 151
in Sources/Class-CurlFetchWeb.php on line 162
$_REQUEST,
and$packagesdir . '/' . $_REQUEST['package']
is passed to read_tgz_file() in Sources/Packages.php on line 1285$_REQUEST,
and$packagesdir . '/' . $_REQUEST['package']
is passed to read_tgz_file()in Sources/Packages.php on line 1285
$gzfilename
is passed to read_tgz_data()in Sources/Subs-Package.php on line 35
$gzfilename
is passed to fetch_web_data()in Sources/Subs-Package.php on line 75
$url
is passed to curl_fetch_web_data::get_url_data()in Sources/Subs-Package.php on line 3141
$url
is passed through str_replace(), andstr_replace(' ', '%20', $url)
is passed to curl_fetch_web_data::curl_request()in Sources/Class-CurlFetchWeb.php on line 131
in Sources/Class-CurlFetchWeb.php on line 151
in Sources/Class-CurlFetchWeb.php on line 162
$_REQUEST,
and$packagesdir . '/' . $_REQUEST['package']
is passed to read_tgz_file() in Sources/Packages.php on line 1309$_REQUEST,
and$packagesdir . '/' . $_REQUEST['package']
is passed to read_tgz_file()in Sources/Packages.php on line 1309
$gzfilename
is passed to read_tgz_data()in Sources/Subs-Package.php on line 35
$gzfilename
is passed to fetch_web_data()in Sources/Subs-Package.php on line 75
$url
is passed to curl_fetch_web_data::get_url_data()in Sources/Subs-Package.php on line 3141
$url
is passed through str_replace(), andstr_replace(' ', '%20', $url)
is passed to curl_fetch_web_data::curl_request()in Sources/Class-CurlFetchWeb.php on line 131
in Sources/Class-CurlFetchWeb.php on line 151
in Sources/Class-CurlFetchWeb.php on line 162
$_REQUEST,
and$_REQUEST['package']
is passed through preg_replace(), and$context
is assigned in Sources/Packages.php on line 1849$_REQUEST,
and$_REQUEST['package']
is passed through preg_replace(), and$context
is assignedin Sources/Packages.php on line 1849
$packagesdir . '/' . $context['filename']
is passed to read_tgz_file()in Sources/Packages.php on line 1854
$gzfilename
is passed to read_tgz_data()in Sources/Subs-Package.php on line 35
$gzfilename
is passed to fetch_web_data()in Sources/Subs-Package.php on line 75
$url
is passed to curl_fetch_web_data::get_url_data()in Sources/Subs-Package.php on line 3141
$url
is passed through str_replace(), andstr_replace(' ', '%20', $url)
is passed to curl_fetch_web_data::curl_request()in Sources/Class-CurlFetchWeb.php on line 131
in Sources/Class-CurlFetchWeb.php on line 151
in Sources/Class-CurlFetchWeb.php on line 162
$_REQUEST,
and$_REQUEST['package']
is escaped by basename() for file context(s), and$base_name
is assigned in Sources/ManageSmileys.php on line 1453$_REQUEST,
and$_REQUEST['package']
is escaped by basename() for file context(s), and$base_name
is assignedin Sources/ManageSmileys.php on line 1453
$context
is assignedin Sources/ManageSmileys.php on line 1455
$context['filename']
is passed to getPackageInfo()in Sources/ManageSmileys.php on line 1499
$gzfilename
is passed to read_tgz_data()in Sources/Subs-Package.php on line 533
$gzfilename
is passed to fetch_web_data()in Sources/Subs-Package.php on line 75
$url
is passed to curl_fetch_web_data::get_url_data()in Sources/Subs-Package.php on line 3141
$url
is passed through str_replace(), andstr_replace(' ', '%20', $url)
is passed to curl_fetch_web_data::curl_request()in Sources/Class-CurlFetchWeb.php on line 131
in Sources/Class-CurlFetchWeb.php on line 151
in Sources/Class-CurlFetchWeb.php on line 162
$_GET,
and$url
is assigned in Sources/PackageGet.php on line 230$_GET,
and$url
is assignedin Sources/PackageGet.php on line 230
$url . '/' . $package['filename']
is passed to getPackageInfo()in Sources/PackageGet.php on line 497
$gzfilename
is passed to read_tgz_data()in Sources/Subs-Package.php on line 533
$gzfilename
is passed to fetch_web_data()in Sources/Subs-Package.php on line 75
$url
is passed to curl_fetch_web_data::get_url_data()in Sources/Subs-Package.php on line 3141
$url
is passed through str_replace(), andstr_replace(' ', '%20', $url)
is passed to curl_fetch_web_data::curl_request()in Sources/Class-CurlFetchWeb.php on line 131
in Sources/Class-CurlFetchWeb.php on line 151
in Sources/Class-CurlFetchWeb.php on line 162
$_GET,
and$url
is assigned in Sources/PackageGet.php on line 239$_GET,
and$url
is assignedin Sources/PackageGet.php on line 239
$url . '/' . $package['filename']
is passed to getPackageInfo()in Sources/PackageGet.php on line 497
$gzfilename
is passed to read_tgz_data()in Sources/Subs-Package.php on line 533
$gzfilename
is passed to fetch_web_data()in Sources/Subs-Package.php on line 75
$url
is passed to curl_fetch_web_data::get_url_data()in Sources/Subs-Package.php on line 3141
$url
is passed through str_replace(), andstr_replace(' ', '%20', $url)
is passed to curl_fetch_web_data::curl_request()in Sources/Class-CurlFetchWeb.php on line 131
in Sources/Class-CurlFetchWeb.php on line 151
in Sources/Class-CurlFetchWeb.php on line 162
$_GET,
and$current_url
is assigned in Sources/PackageGet.php on line 358$_GET,
and$current_url
is assignedin Sources/PackageGet.php on line 358
$package
is assignedin Sources/PackageGet.php on line 366
$package
is assignedin Sources/PackageGet.php on line 376
$package
is assignedin Sources/PackageGet.php on line 377
$package
is assignedin Sources/PackageGet.php on line 466
$package
is assignedin Sources/PackageGet.php on line 467
$package
is assignedin Sources/PackageGet.php on line 468
$package
is assignedin Sources/PackageGet.php on line 469
$package
is assignedin Sources/PackageGet.php on line 470
$package
is assignedin Sources/PackageGet.php on line 473
$context
is assignedin Sources/PackageGet.php on line 476
$packageSection
is assignedin Sources/PackageGet.php on line 488
$package
is assignedin Sources/PackageGet.php on line 490
$url . '/' . $package['filename']
is passed to getPackageInfo()in Sources/PackageGet.php on line 497
$gzfilename
is passed to read_tgz_data()in Sources/Subs-Package.php on line 533
$gzfilename
is passed to fetch_web_data()in Sources/Subs-Package.php on line 75
$url
is passed to curl_fetch_web_data::get_url_data()in Sources/Subs-Package.php on line 3141
$url
is passed through str_replace(), andstr_replace(' ', '%20', $url)
is passed to curl_fetch_web_data::curl_request()in Sources/Class-CurlFetchWeb.php on line 131
in Sources/Class-CurlFetchWeb.php on line 151
in Sources/Class-CurlFetchWeb.php on line 162
$_GET,
and$current_url
is assigned in Sources/PackageGet.php on line 360$_GET,
and$current_url
is assignedin Sources/PackageGet.php on line 360
$package
is assignedin Sources/PackageGet.php on line 366
$package
is assignedin Sources/PackageGet.php on line 376
$package
is assignedin Sources/PackageGet.php on line 377
$package
is assignedin Sources/PackageGet.php on line 466
$package
is assignedin Sources/PackageGet.php on line 467
$package
is assignedin Sources/PackageGet.php on line 468
$package
is assignedin Sources/PackageGet.php on line 469
$package
is assignedin Sources/PackageGet.php on line 470
$package
is assignedin Sources/PackageGet.php on line 473
$context
is assignedin Sources/PackageGet.php on line 476
$packageSection
is assignedin Sources/PackageGet.php on line 488
$package
is assignedin Sources/PackageGet.php on line 490
$url . '/' . $package['filename']
is passed to getPackageInfo()in Sources/PackageGet.php on line 497
$gzfilename
is passed to read_tgz_data()in Sources/Subs-Package.php on line 533
$gzfilename
is passed to fetch_web_data()in Sources/Subs-Package.php on line 75
$url
is passed to curl_fetch_web_data::get_url_data()in Sources/Subs-Package.php on line 3141
$url
is passed through str_replace(), andstr_replace(' ', '%20', $url)
is passed to curl_fetch_web_data::curl_request()in Sources/Class-CurlFetchWeb.php on line 131
in Sources/Class-CurlFetchWeb.php on line 151
in Sources/Class-CurlFetchWeb.php on line 162
$_GET,
and$current_url
is assigned in Sources/PackageGet.php on line 383$_GET,
and$current_url
is assignedin Sources/PackageGet.php on line 383
$package
is assignedin Sources/PackageGet.php on line 421
$package
is assignedin Sources/PackageGet.php on line 422
$package
is assignedin Sources/PackageGet.php on line 461
$package
is assignedin Sources/PackageGet.php on line 462
$package
is assignedin Sources/PackageGet.php on line 466
$package
is assignedin Sources/PackageGet.php on line 467
$package
is assignedin Sources/PackageGet.php on line 468
$package
is assignedin Sources/PackageGet.php on line 469
$package
is assignedin Sources/PackageGet.php on line 470
$package
is assignedin Sources/PackageGet.php on line 473
$context
is assignedin Sources/PackageGet.php on line 476
$packageSection
is assignedin Sources/PackageGet.php on line 488
$package
is assignedin Sources/PackageGet.php on line 490
$url . '/' . $package['filename']
is passed to getPackageInfo()in Sources/PackageGet.php on line 497
$gzfilename
is passed to read_tgz_data()in Sources/Subs-Package.php on line 533
$gzfilename
is passed to fetch_web_data()in Sources/Subs-Package.php on line 75
$url
is passed to curl_fetch_web_data::get_url_data()in Sources/Subs-Package.php on line 3141
$url
is passed through str_replace(), andstr_replace(' ', '%20', $url)
is passed to curl_fetch_web_data::curl_request()in Sources/Class-CurlFetchWeb.php on line 131
in Sources/Class-CurlFetchWeb.php on line 151
in Sources/Class-CurlFetchWeb.php on line 162
$_GET,
and$current_url
is assigned in Sources/PackageGet.php on line 385$_GET,
and$current_url
is assignedin Sources/PackageGet.php on line 385
$package
is assignedin Sources/PackageGet.php on line 421
$package
is assignedin Sources/PackageGet.php on line 422
$package
is assignedin Sources/PackageGet.php on line 461
$package
is assignedin Sources/PackageGet.php on line 462
$package
is assignedin Sources/PackageGet.php on line 466
$package
is assignedin Sources/PackageGet.php on line 467
$package
is assignedin Sources/PackageGet.php on line 468
$package
is assignedin Sources/PackageGet.php on line 469
$package
is assignedin Sources/PackageGet.php on line 470
$package
is assignedin Sources/PackageGet.php on line 473
$context
is assignedin Sources/PackageGet.php on line 476
$packageSection
is assignedin Sources/PackageGet.php on line 488
$package
is assignedin Sources/PackageGet.php on line 490
$url . '/' . $package['filename']
is passed to getPackageInfo()in Sources/PackageGet.php on line 497
$gzfilename
is passed to read_tgz_data()in Sources/Subs-Package.php on line 533
$gzfilename
is passed to fetch_web_data()in Sources/Subs-Package.php on line 75
$url
is passed to curl_fetch_web_data::get_url_data()in Sources/Subs-Package.php on line 3141
$url
is passed through str_replace(), andstr_replace(' ', '%20', $url)
is passed to curl_fetch_web_data::curl_request()in Sources/Class-CurlFetchWeb.php on line 131
in Sources/Class-CurlFetchWeb.php on line 151
in Sources/Class-CurlFetchWeb.php on line 162
$_REQUEST,
and$_REQUEST['filename']
is escaped by basename() for file context(s), and$package_name
is assigned in Sources/PackageGet.php on line 576$_REQUEST,
and$_REQUEST['filename']
is escaped by basename() for file context(s), and$package_name
is assignedin Sources/PackageGet.php on line 576
$package_name
is passed to getPackageInfo()in Sources/PackageGet.php on line 611
$gzfilename
is passed to read_tgz_data()in Sources/Subs-Package.php on line 533
$gzfilename
is passed to fetch_web_data()in Sources/Subs-Package.php on line 75
$url
is passed to curl_fetch_web_data::get_url_data()in Sources/Subs-Package.php on line 3141
$url
is passed through str_replace(), andstr_replace(' ', '%20', $url)
is passed to curl_fetch_web_data::curl_request()in Sources/Class-CurlFetchWeb.php on line 131
in Sources/Class-CurlFetchWeb.php on line 151
in Sources/Class-CurlFetchWeb.php on line 162
$_REQUEST,
and$_REQUEST['package']
is escaped by basename() for file context(s), and$package_name
is assigned in Sources/PackageGet.php on line 578$_REQUEST,
and$_REQUEST['package']
is escaped by basename() for file context(s), and$package_name
is assignedin Sources/PackageGet.php on line 578
$package_name
is passed to getPackageInfo()in Sources/PackageGet.php on line 611
$gzfilename
is passed to read_tgz_data()in Sources/Subs-Package.php on line 533
$gzfilename
is passed to fetch_web_data()in Sources/Subs-Package.php on line 75
$url
is passed to curl_fetch_web_data::get_url_data()in Sources/Subs-Package.php on line 3141
$url
is passed through str_replace(), andstr_replace(' ', '%20', $url)
is passed to curl_fetch_web_data::curl_request()in Sources/Class-CurlFetchWeb.php on line 131
in Sources/Class-CurlFetchWeb.php on line 151
in Sources/Class-CurlFetchWeb.php on line 162
$_FILES,
and$_FILES['package']['name']
is passed through strtolower(), andstrtolower($_FILES['package']['name'])
is passed through strrchr(), andstrrchr(strtolower($_FILES['package']['name']), '.')
is passed through substr(), and$extension
is assigned in Sources/PackageGet.php on line 656$_FILES,
and$_FILES['package']['name']
is passed through strtolower(), andstrtolower($_FILES['package']['name'])
is passed through strrchr(), andstrrchr(strtolower($_FILES['package']['name']), '.')
is passed through substr(), and$extension
is assignedin Sources/PackageGet.php on line 656
$extension
is assignedin Sources/PackageGet.php on line 663
$packageName
is assignedin Sources/PackageGet.php on line 664
$packageName
is passed to getPackageInfo()in Sources/PackageGet.php on line 677
$gzfilename
is passed to read_tgz_data()in Sources/Subs-Package.php on line 533
$gzfilename
is passed to fetch_web_data()in Sources/Subs-Package.php on line 75
$url
is passed to curl_fetch_web_data::get_url_data()in Sources/Subs-Package.php on line 3141
$url
is passed through str_replace(), andstr_replace(' ', '%20', $url)
is passed to curl_fetch_web_data::curl_request()in Sources/Class-CurlFetchWeb.php on line 131
in Sources/Class-CurlFetchWeb.php on line 151
in Sources/Class-CurlFetchWeb.php on line 162
General Strategies to prevent injection
In general, it is advisable to prevent any user-data to reach this point. This can be done by white-listing certain values:
For numeric data, we recommend to explicitly cast the data: