Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

JSP Parameter to Action Object Mapping Plugin

Excerpt

does this great thing

. Here is also a short overview of what it does and why a developer would want to use it.In struts2 Programmatic Access Control can not be handled.
So possible of security attacks in HTML using Direct Object reference attack.

Many applications expose their internal object references to users. Attackers use parameter tampering to change references and violate the intended but unenforced access control policy. Frequently, these references point to file systems and databases, but any exposed application construct could be vulnerable.

The best protection is to avoid exposing direct object references to users by using an index, indirect reference map, or other indirect method that is easy to validate. If a direct object reference must be used, ensure that the user is authorized before using it.

  • Avoid exposing your private object references to users whenever possible, such as primary keys or filenames
  • Validate any private object references extensively with an "accept known good" approach
  • Verify authorization to all referenced objects

So to avoid internal object implementation to end user, this plugin can be used.

...