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 @ createaccount.php [master] #79

Open
cxronen opened this issue Jun 17, 2020 · 8 comments
Open

CX Command_Injection @ createaccount.php [master] #79

cxronen opened this issue Jun 17, 2020 · 8 comments

Comments

@cxronen
Copy link
Owner

cxronen commented Jun 17, 2020

Command_Injection issue exists @ createaccount.php in branch master

The application's <?php method calls an OS (shell) command with mail, at line 1 of createaccount.php, 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, _POST, which is retrieved by the application in the <?php method, at line 1 of createaccount.php.

Severity: High

CWE:77

Checkmarx

Lines: 33 55 30


Code (Line #33):

	$email = isset($_POST["email"])?$_POST["email"]:"";

Code (Line #55):

				$emailmsg = "Please click the following link to activate your account.\n\n". $_SERVER["HTTP_REFERER"] ."?code=". $activationcode ."&username=". $desiredusername ."\n\nThank you!";

Code (Line #30):

	$desiredusername = isset($_POST["desiredusername"])?$_POST["desiredusername"]:"";

@cxronen
Copy link
Owner Author

cxronen commented Jun 17, 2020

Issue still exists.

7 similar comments
@cxronen
Copy link
Owner Author

cxronen commented Jun 17, 2020

Issue still exists.

@cxronen
Copy link
Owner Author

cxronen commented Jun 18, 2020

Issue still exists.

@cxronen
Copy link
Owner Author

cxronen commented Jun 18, 2020

Issue still exists.

@cxronen
Copy link
Owner Author

cxronen commented Jun 18, 2020

Issue still exists.

@cxronen
Copy link
Owner Author

cxronen commented Jun 18, 2020

Issue still exists.

@cxronen
Copy link
Owner Author

cxronen commented Jun 22, 2020

Issue still exists.

@cxronen
Copy link
Owner Author

cxronen commented Jul 2, 2020

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