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

CX HTTP_Response_Splitting @ BookDetail_jsp2.java [master] #179

Open
cxflowtestuser opened this issue Jun 20, 2020 · 6 comments
Open

CX HTTP_Response_Splitting @ BookDetail_jsp2.java [master] #179

cxflowtestuser opened this issue Jun 20, 2020 · 6 comments

Comments

@cxflowtestuser
Copy link
Owner

cxflowtestuser commented Jun 20, 2020

HTTP_Response_Splitting issue exists @ BookDetail_jsp2.java in branch master

Method getParam at line 167 of BookDetail_jsp2.java gets user input from the paramName element. This element’s value then flows through the code without being properly sanitized or validated, and is eventually used in an HTTP response header in DetailAction at line 431 of BookDetail_jsp2.java. This may enable an HTTP Response Splitting attack, in certain older versions that do not mitigate this attack.

Severity: Medium

CWE:113

Vulnerability details and guidance

Internal Guidance

Checkmarx

Training
Recommended Fix

Lines: 168 409


Code (Line #168):

    String param = req.getParameter(paramName);

Code (Line #409):

        response.sendRedirect("Login.jsp?querystring=" + toURL(request.getQueryString()) + "&ret_page=" + toURL(request.getRequestURI()));

@cxflowtestuser
Copy link
Owner Author

Issue still exists.

SUMMARY

Issue has 2 vulnerability/vulnerabilities left to be fixed (Please scroll to the top for more information)

5 similar comments
@cxflowtestuser
Copy link
Owner Author

Issue still exists.

SUMMARY

Issue has 2 vulnerability/vulnerabilities left to be fixed (Please scroll to the top for more information)

@cxflowtestuser
Copy link
Owner Author

Issue still exists.

SUMMARY

Issue has 2 vulnerability/vulnerabilities left to be fixed (Please scroll to the top for more information)

@cxflowtestuser
Copy link
Owner Author

Issue still exists.

SUMMARY

Issue has 2 vulnerability/vulnerabilities left to be fixed (Please scroll to the top for more information)

@cxflowtestuser
Copy link
Owner Author

Issue still exists.

SUMMARY

Issue has 2 vulnerability/vulnerabilities left to be fixed (Please scroll to the top for more information)

@cxflowtestuser
Copy link
Owner Author

Issue still exists.

SUMMARY

Issue has 2 vulnerability/vulnerabilities left to be fixed (Please scroll to the top for more information)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant