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 Command_Injection @ riches/pages/content/oper/Admin.jsp [master] #314

Open
kmcdon83 opened this issue Oct 16, 2019 · 4 comments
Open

Comments

@kmcdon83
Copy link

kmcdon83 commented Oct 16, 2019

Command_Injection issue exists @ riches/pages/content/oper/Admin.jsp in branch master

The application's sendMail method calls an OS (shell) command with exec, at line 66 of riches\WEB-INF\src\java\com\checkmarx\samples\riches\oper\SendMessage.java, using an untrusted string with the command to execute.  
This could allow an attacker to inject an arbitrary command, and enable a Command Injection attack.
The attacker may be able to inject the executed command via user input, name_, which is retrieved by the application in the rows="12"/></td> method, at line 30 of riches\pages\content\oper\Admin.jsp.

Severity: High

CWE:77

Vulnerability details and guidance

Internal Guidance

Checkmarx

Lines: 30


Code (Line #30):

                                        <td colspan="2" align="left"><s:textarea label="Body" name="body" cols="114" rows="12"/></td>

@kmcdon83
Copy link
Author

Issue still exists.

@kmcdon83 kmcdon83 reopened this Dec 17, 2019
@kmcdon83
Copy link
Author

Issue still exists.

2 similar comments
@kmcdon83
Copy link
Author

Issue still exists.

@kmcdon83
Copy link
Author

Issue still exists.

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