summaryrefslogtreecommitdiff
path: root/post.php
diff options
context:
space:
mode:
authorMichael Foster <savetheinternet@tinyboard.org>2013-08-13 00:07:23 +1000
committerMichael Foster <savetheinternet@tinyboard.org>2013-08-13 00:07:23 +1000
commit60b3cfc539392d5b760244e21b69136895e938cb (patch)
treea18e2714a68a8859a1e57cce5bfbe53cf338526f /post.php
parent6fdbe76f7b7b69ca6bfbff65af8096734e46233d (diff)
Upload via URL: Make sure we're not vulnerable to this buffer overflow exploit. http://www.exploit-db.com/exploits/24487/
Diffstat (limited to 'post.php')
-rw-r--r--post.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/post.php b/post.php
index 6bed96e1..8a8487e8 100644
--- a/post.php
+++ b/post.php
@@ -295,6 +295,7 @@ if (isset($_POST['delete'])) {
curl_setopt($curl, CURLOPT_USERAGENT, 'Tinyboard');
curl_setopt($curl, CURLOPT_BINARYTRANSFER, true);
curl_setopt($curl, CURLOPT_FILE, $fp);
+ curl_setopt($curl, CURLOPT_PROTOCOLS, CURLPROTO_HTTP | CURLPROTO_HTTPS);
if (curl_exec($curl) === false)
error($config['error']['nomove']);