Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / Security / August 2008

Tip: Looking for answers? Try searching our database.

Applet Security doing HTTP

Thread view: 
Kenneth P. Turvey - 12 Aug 2008 16:16 GMT
I'm having a discussion with a client and what the client says doesn't
seem to be possible, so I'm going through it out there and see if maybe
I'm mistaken in my understanding of how an applet does its thing.  

The basic issue is that there is a PHP script that requires
authentication.  I'm assuming they mean HTTP basic authentication since
nobody can seem to give me any other details.  Then I have an applet that
I wrote that is intended to POST some data to the script.  It doesn't do
anything to authenticate to the script.  It doesn't pass any cookies or
security tokens explicitly.  

The client says this works, but I can't replicate his results from here.  
I'm also not sure his test is really valid.  

The only way this could possibly work is if the JVM picks up security
tokens from the browser when it makes its HTTP connection.  I don't think
it does this.  Am I incorrect here?  Is the JVM quietly taking care of
using the correct security tokens?  

Thanks.

Signature

Kenneth P. Turvey <kt-usenet@squeakydolphin.com>
http://www.electricsenator.net

 It is dangerous to be sincere unless you are also stupid.
       -- George Bernard Shaw

Dave Miller - 12 Aug 2008 18:50 GMT
> I'm having a discussion with a client and what the client says doesn't
> seem to be possible, so I'm going through it out there and see if maybe
[quoted text clipped - 16 lines]
>
> Thanks.

AFAIK, there is no automatic token handling within Applet. Even if the
browser has authenticated via HTTP basic I don't see how that
automatically passes to a separate applet connection.

If your applet's not setting headers, it almost has to be either a
construct on the php side or a broken security scheme.

It would probably be real helpful to see the script.

Signature

Dave Miller
Java Web Hosting
http://www.cheap-jsp-hosting.com/



Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.