Ethical Hacking

Learn to find vulnerabilities before the bad guys do! Gain real world hands on hacking experience in our state of the art hacking lab. Course designed and taught by expert instructors with years of penetration testing experience. 12 student maximum in every class. Certification attempt included in every package.
Computer Forensics Training at InfoSec Institute

Gain the in-demand skills of a certified computer examiner, learn to recover trace data left behind by fraud, theft, and cybercrime perpetrators. Discover the source of computer crime and abuse at your organization so that it never happens again. All of our class sizes are guaranteed to be 12 students or less to facilitate one-on-one interaction with one of our expert instructors.




Network Security Web-App-Sec
[Top] [All Lists]

Re: [SC-L] By default, the Verifier is disabled on .Net and Java

Subject: Re: [SC-L] By default, the Verifier is disabled on .Net and Java
Date: Mon, 15 May 2006 12:31:03 +1000
On 13/05/2006, at 3:30 PM, Stephen de Vries wrote:
This error is thrown irrespective of the -verify flag. So it looks like using a classloader causes the VM to perform verification, whether or not the "verifier" was enabled. Michael Silk made a similar statement earlier in this thread. Would you agree?

This is possible. I can't find anywhere in the VM spec that says under what circumstances the verifier is invoked, but it _does_ say that the purpose of the verifier is to vet untrusted code.


If you load classes directly by adding them to the system classpath, Java assumes you trust them and doesn't bring up any kind of sandbox beyond its built-in type and bounds checking mechanisms. It seems logical that Java would skip the expensive bytecode verification step on classes loaded by the system classloader, and then invoke it for custom classloaders that might be loading classes from untrusted sources.

Of course, 'sounds logical' often has only a vague relationship with what Java actually does, so I wouldn't count on this being the case without more concrete evidence. :)

C



-------------------------------------------------------------------------
Sponsored by: Watchfire

Methodologies & Tools for Web Application Security Assessment
With the rapid rise in the number and types of security threats, web application security assessments should be considered a crucial phase in the development of any web application. What methodology should be followed? What tools can accelerate the assessment process? Download this whitepaper today!


https://www.watchfire.com/securearea/whitepapers.aspx?id=701300000007t9h
--------------------------------------------------------------------------

<Prev in Thread] Current Thread [Next in Thread>