Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upgrade Struts 2.5.33 to 6.4.0 - Fixes Many Vulnerabilities #84

Merged
merged 2 commits into from
Dec 18, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -133,17 +133,17 @@
<dependency>
<groupId>org.apache.struts</groupId>
<artifactId>struts2-core</artifactId>
<version>2.5.33</version>
<version>6.7.0</version>
</dependency>
<dependency>
<groupId>org.apache.struts</groupId>
<artifactId>struts2-junit-plugin</artifactId>
<version>2.5.33</version>
<version>6.7.0</version>
</dependency>
<dependency>
<groupId>org.apache.struts</groupId>
<artifactId>struts2-convention-plugin</artifactId>
<version>2.5.20</version>
<version>6.7.0</version>
</dependency>
<dependency>
<groupId>org.springframework.security</groupId>
Expand Down
2 changes: 1 addition & 1 deletion src/com/fuse/actions/FSActionSupport.java
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
public class FSActionSupport extends ActionSupport implements SessionAware, ServletRequestAware, ServletResponseAware {


protected SessionMap<String,Object> JSESSION;
protected SessionMap JSESSION;
protected Map<String,String> COOKIES;
public HttpServletRequest request = ServletActionContext.getRequest();
public HttpServletResponse response = ServletActionContext.getResponse();
Expand Down
6 changes: 4 additions & 2 deletions src/struts.xml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE struts PUBLIC
"-//Apache Software Foundation//DTD Struts Configuration 2.3//EN"
"http://struts.apache.org/dtds/struts-2.3.dtd">
"-//Apache Software Foundation//DTD Struts Configuration 6.0//EN"
"https://struts.apache.org/dtds/struts-6.0.dtd">
<struts>

<constant name="struts.multipart.maxSize" value="1000000000"/>
Expand Down Expand Up @@ -52,6 +52,8 @@
</package>
<constant name="struts.convention.default.parent.package" value="default"/>
<constant name="struts.devMode" value="false" />
<constant name="struts.csp.enable" value="false" />
<constant name="struts.csp.policy" value="default-src 'self'; script-src 'self'; style-src 'self'" />

<!-- Add packages here -->
<constant name="struts.action.excludePattern" value="/(service|api)/.*"/>
Expand Down
Loading