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. |

| Subject: | Re: Preventing direct URL access in a J2EE environment |
|---|---|
| Date: | Thu, 10 Mar 2005 15:16:11 +0000 |
Kevin,
I had a moderate amount of success with this but unfortunately, weWell, to enforce flow you must have some involvement from every page - that's a fundamental.
also use some 3rd party libraries that display data
(displaytag.sf.net) and the URLs that it spits out (for paging) are
not modifiable without some serious rework.
Regards,
Paul
Kevin Conaway wrote:
I am using BEA WebLogic 8.1.
As I stated in my initial email, I extended certain tag libraries (NetUI, JSTL etc) to output a cryptographically strong token on any type of URL (form, anchor, c:url etc).
The token, along with the User ID and action being requested are stored when the tag is generated.
I wrote a Servlet filter to intercept incoming action requests and check to see if it had the token. If it didn't it rejected the request. If it did, it looked up the action and User ID by the incoming token. If the action and User ID matched, it let the request through.
I also enabled this ONLY for new requests (redirects if you will), not forwarded requests because forwarded requests are valid (and can only be done by the system as I understand it) but they wont and cant contain a token.
With that in mind, I'm at a stand still right now..
Kevin
-- Paul Johnston, GSEC Internet Security Specialist Westpoint Limited Albion Wharf, 19 Albion Street, Manchester, M1 5LN England Tel: +44 (0)161 237 1028 Fax: +44 (0)161 237 1031 email: paul@westpoint.ltd.uk web: www.westpoint.ltd.uk
| Previous by Date: | Re: PHP Directory Transversal, Richard Moore |
|---|---|
| Next by Date: | Re: PHP Directory Transversal, Sarath Kummamuru |
| Previous by Thread: | Re: Preventing direct URL access in a J2EE environment, Kevin Conaway |
| Next by Thread: | Re: Preventing direct URL access in a J2EE environment, Jeroen van Rijn |
| Indexes: | [Date] [Thread] [Top] [All Lists] |