-
Notifications
You must be signed in to change notification settings - Fork 0
Update myprofile.jsp #24
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
base: master
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -12,6 +12,40 @@ | |||||||||||||||||||||||||||||
| if(session.getAttribute("isLoggedIn")!=null) | ||||||||||||||||||||||||||||||
| { | ||||||||||||||||||||||||||||||
| Connection con=new DBConnect().connect(getServletContext().getRealPath("/WEB-INF/config.properties")); | ||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||
| String id=request.getParameter("id"); | ||||||||||||||||||||||||||||||
|
Owner
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
|
||||||||||||||||||||||||||||||
| String id=request.getParameter("id"); |
Step 4 src/main/webapp/myprofile.jsp#L55
Step 5 - 7
| ResultSet rs1=stmt.executeQuery("select * from cards where id="+id); |
⚡ Fix this issue by replying with the following command: @snyk /fix
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@snyk /fix
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There were no fixes found for the request
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Cross-site Scripting (XSS)
Unsanitized input from an HTTP parameter flows into print, where it is used to render an HTML page returned to the user. This may result in a Cross-Site Scripting attack (XSS).
Line 16 | CWE-79 | Priority score 875 | Learn more about this vulnerability
Data flow: 12 steps
Step 1 - 3
| String id=request.getParameter("id"); |
Step 4 - 7 src/main/webapp/myprofile.jsp#L55
Step 8 - 12
| out.print("UserName : "+rs.getString("username")+"<br>"); |
⚡ Fix this issue by replying with the following command: @snyk /fix
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Cross-site Scripting (XSS)
Unsanitized input from an HTTP parameter flows into print, where it is used to render an HTML page returned to the user. This may result in a Cross-Site Scripting attack (XSS).
Line 16 | CWE-79 | Priority score 875 | Learn more about this vulnerability
Data flow: 12 steps
Step 1 - 3
| String id=request.getParameter("id"); |
Step 4 - 7 src/main/webapp/myprofile.jsp#L55
Step 8 - 12
| out.print("Email : "+rs.getString("email")+"<br>"); |
⚡ Fix this issue by replying with the following command: @snyk /fix
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Cross-site Scripting (XSS)
Unsanitized input from an HTTP parameter flows into print, where it is used to render an HTML page returned to the user. This may result in a Cross-Site Scripting attack (XSS).
Line 16 | CWE-79 | Priority score 875 | Learn more about this vulnerability
Data flow: 12 steps
Step 1 - 3
| String id=request.getParameter("id"); |
Step 4 - 7 src/main/webapp/myprofile.jsp#L55
Step 8 - 12
| out.print("About : "+rs.getString("about")+"<br>"); |
⚡ Fix this issue by replying with the following command: @snyk /fix
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Cross-site Scripting (XSS)
Unsanitized input from an HTTP parameter flows into print, where it is used to render an HTML page returned to the user. This may result in a Cross-Site Scripting attack (XSS).
Line 16 | CWE-79 | Priority score 875 | Learn more about this vulnerability
Data flow: 13 steps
Step 1 - 3
| String id=request.getParameter("id"); |
Step 4 src/main/webapp/myprofile.jsp#L55
Step 5 - 8 src/main/webapp/myprofile.jsp#L63
Step 9 - 13
| out.print("Card Number: "+rs1.getString("cardno")+"<br/>"); |
⚡ Fix this issue by replying with the following command: @snyk /fix
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Cross-site Scripting (XSS)
Unsanitized input from an HTTP parameter flows into print, where it is used to render an HTML page returned to the user. This may result in a Cross-Site Scripting attack (XSS).
Line 16 | CWE-79 | Priority score 875 | Learn more about this vulnerability
Data flow: 13 steps
Step 1 - 3
| String id=request.getParameter("id"); |
Step 4 src/main/webapp/myprofile.jsp#L55
Step 5 - 8 src/main/webapp/myprofile.jsp#L63
Step 9 - 13
| out.print("CVV: "+rs1.getString("cvv")+"<br/>"); |
⚡ Fix this issue by replying with the following command: @snyk /fix
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Cross-site Scripting (XSS)
Unsanitized input from an HTTP parameter flows into print, where it is used to render an HTML page returned to the user. This may result in a Cross-Site Scripting attack (XSS).
Line 16 | CWE-79 | Priority score 875 | Learn more about this vulnerability
Data flow: 13 steps
Step 1 - 3
| String id=request.getParameter("id"); |
Step 4 src/main/webapp/myprofile.jsp#L55
Step 5 - 8 src/main/webapp/myprofile.jsp#L63
Step 9 - 13
| out.print("Expiry Date: "+rs1.getString("expirydate")+"<br/>"); |
⚡ Fix this issue by replying with the following command: @snyk /fix
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Unsanitized input from
an HTTP parameterflows intoexecuteQuery, where it is used in an SQL query. This may result in an SQL Injection vulnerability.Line 16 | CWE-89 | Priority score 825 | Learn more about this vulnerability
Data flow: 6 steps
Step 1 - 3JavaVulnerableLab/src/main/webapp/myprofile.jsp
Line 16 in d03d44a
Step 4 - 6JavaVulnerableLab/src/main/webapp/myprofile.jsp
Line 55 in d03d44a
⚡ Fix this issue by replying with the following command:
@snyk /fixThere was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@snyk /fix
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There were no fixes found for the request