• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Dealing with XSS in struts

 
Ranch Hand
Posts: 271
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi
What are the recommendations to deal with cross-site scripting in
struts?
I'm got an app that a use can access at a URL , let's call it
http://localhost/myapplication , now doing something like

http://localhost/myapplication/applicationInit.do?mode
=<script<alert(document.Kookie)<script/<
Kookie is meant to be cookie
reveals a pop-up box containing the currently set cookies.

How can I block that from happening?Is there a way of encoding a form
bean?
Will encoding every field/attribute in the form bean , be a viable option?
jeff mutonho
 
jeff mutonho
Ranch Hand
Posts: 271
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi
REPOST:
What are the recommendations to deal with cross-site scripting in
struts?
I'm got an app that a use can access at a URL , let's call it
http://localhost/myapplication , now doing something like
http://localhost/myapplication/applicationInit.do?mode
=<script>alert(document.Kookie)<script/>
reveals a pop-up box containing the currently set cookies.
( Kookie here is meant to be cookie )
How can I block that from happening?Is there a way of encoding a form
bean?
Will encoding every field/attribute in the form bean , be a viable option?
jeff mutonho
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic