Re: window of vulnerability



mei wrote:

Would it be possible to "attack" a third-party
class (whose code wouldn't be modifiable) by running a concurrent thread
that would exploit a window of vulnerability?

If it was possible then that would be because of a bug in the third-party
class. Java provides all the tools you need to ensure that you don't leave any
thread-related holes (either for security or just for safety). But that
doesn't mean that all classes /will/ be safe -- anyone can write buggy code,
and multi-threaded code is notoriously difficult to get right.

But there is also a wider sense in which malicious code could exploit a "window
of opportunity", not specifically about threading issues (and not specific to
Java either), if the application isn't carefully designed. There are all sorts
of possibilities there, but each one is about finding some loophole in the
application design. One large category of attacks focus on temporary files
which some applications use to pass information between programs. If the
designer isn't careful, then there may be a chance for someone else to
substitute their own data. You can check Google for
"temporary file vulnerability"
Note that very few or none of the hits mention Java, although the same problems
/could/ occur in Java.

-- chris


.



Relevant Pages

  • jmf in gui
    ... i'm pretty new to java. ... my problem is that i would like to design a window in which i would be ... able to display my webcam. ...
    (comp.lang.java.gui)
  • Re: programming job market in bay area in US
    ... should spend the effort to apply for it and bug the advertiser for a ... Be capable of providing UI design AND implementation ... Lisp and Java are much ... Design and developing of front-end using HTML, ...
    (comp.programming)
  • Re: VS2005 and VS 6.0
    ... You can write a buggy program in any language. ... The delayed destructors are definitely a problem, Java has the same problem. ... design to improve performance and reliability. ... environment by stupid errors. ...
    (microsoft.public.vc.mfc)
  • comp.lang.java.gui FAQ
    ... Q1.2 There are so many Java FAQs. ... Q1.5 What is Swing? ... Q2.1 My GUI freezes or doesn't update. ... Q2.5 How can I make a transparent or non-rectangular window? ...
    (comp.lang.java.gui)
  • Java design and Development
    ... JAVA Developer ... Java design and development using (EJB, ... Web architecture, Web Services, XML, SOA, Data Architect ... Trinity Consultancy Services is a leading source of Information ...
    (comp.lang.javascript)