Re: Java Mustang - new type verifer



Yamin wrote:

This is just out of curiosity having read up a bit on the upcoming new type verifier for Java Mustang.

It's an improved version of what already happens on Java ME/J2ME.

Basically some of the verification will be done at compile time and the
information saved in the class file.  Thus, when the program is run,
some of the verification is already done and the application can now
run faster.

I'm not looking for any great detail, but in general, does anyone know
what prevents someone from 'adjusting' the verification information
saved in the class file to bypass some of java security features?

It does check that the stack map/table agrees with the code. This is much faster than inferring what it should be, apparently. For instance, I don't believe it has to track backward jumps or deal figure out situations involving multiple routes to an instruction.


Don't worry, I trust the JVM guys to have taken care of this :)  I'm
just wondering how it works.

You can check it yourself. There is an exceptionally modest reward if you find a hole.


If I wanted to know how thoroughly something has been checked for holes, I'd put some in deliberately and see if they get spotted. So there might well be some fame there for the taking. Or not.

Tom Hawtin
--
Unemployed English Java programmer
http://jroller.com/page/tackline/
.



Relevant Pages

  • Re: Jeode and Jbed ClassLoader differences?
    ... > Thanks for the information Mark & Seungil. ... Verification is what makes the Java language safe - it has several parts: ... take a bag of bytes and see if it smells like a .class file. ...
    (comp.lang.java.machine)
  • Code Cracking in Java
    ... Software developers, designers, security professional, auditors, managers responsible for evaluating products. ... I love programming in Java but unfortunately I didn’t get a chance to work in software development firm but I am very much happy with my profile, basically I am an ethical hacker currently working in Wipro and previously in PwC. ... For security reasons I will not mention client name, application vendor and detail about the application architecture. ... As we commonly know that the basic loophole in Java is that it can be reengineered from class file to source code, the class file consist of byte codes which is interpreted by Java Virtual Machine to make Java platform independent. ...
    (Pen-Test)
  • Re: java 101 question - how to run a java program
    ... do "javac java01.java". ... .class file in the same directory as the .java file. ... File "java01.java" not a Java class file. ... Unable to create Java program for "java01.java". ...
    (comp.sys.ibm.as400.misc)
  • Re: jar, package and import relationship?
    ... Java does too: the CLASSPATH must be correct. ... It's a bit different for anything that comes with the default with Java, because the JVM handles those a bit differently with out environment variables, but for any library or .class file you download or create, you need to tell your tools where to find them. ... public static void main(String ... ...
    (comp.lang.java.programmer)
  • RE: RH 7.2, J2RE 1.4 and Netscape 7.1
    ... The reason for some problems between 1.4x and 1.4.2 are class file ... format changes. ... I have had multi issues with some of my prebuilt java ... Netscape may even be doing that. ...
    (RedHat)