how to remediate struts vulnerabilities

817 Views Asked by At
2

There are 2 best solutions below

1
patrickm On

The best thing to do would be to upgrade to the latest version. Struts 1 is End of Life and won't receive any updates to fix any issues that still exist.

The latest versions of Struts 2 don't appear to have any published CVEs currently so I would recommend upgrading as soon as you can. It isn't a simple task to migrate to Struts2 with the huge differences but short of fixing the vulnerabilities in Struts1 yourself there is very little else you can do.

1
mattcousineau On

Apache Struts 1 reached it's EOL in December, 2008. Any official support was ceased at that time.

I've listed 3 options I've found while researching the same thing:

  • As someone else said in this thread, the safest bet would be to upgrade to Struts 2. Despite sharing the same name, they are completely different frameworks architecturally. I recently looked into this option for a project I'm working on, and I must warn that it can be a monumental task if you are working on a large codebase.
  • The Struts 1 - Struts 2 plugin - this plugin is used to wrap Struts 1 Actions and ActionForms into Struts 2 Action classes. You can use this to add some of the newer version's functionality for validation. You will need to research whether this is actively accepted and maintained, it's been a while since I've looked into it.
  • Create custom security patches for your legacy application.