cURL Vulnerability?
Posted: Wed Jul 08, 2009 1:26 pm
Hi,
I am no expert (by far) but I have written some small PHP codes for a few websites. Nothing fancy. However, I have 2 websites in particular that get 'hacked' regularly. Seems each time, some malicious code, usually script tags, is added outside of my regular html code. I do use cURL in a few of the pages and I'm wondering if that is the avenue of my attacks. Any insight is appreciated.
here's an example of how I use it
I am no expert (by far) but I have written some small PHP codes for a few websites. Nothing fancy. However, I have 2 websites in particular that get 'hacked' regularly. Seems each time, some malicious code, usually script tags, is added outside of my regular html code. I do use cURL in a few of the pages and I'm wondering if that is the avenue of my attacks. Any insight is appreciated.
here's an example of how I use it
Code: Select all
<?php
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, "a link to another file on same server");
curl_setopt($ch, CURLOPT_HEADER, 0);
curl_exec($ch);
curl_close($ch);
?>