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

[Security Vulnerability] Allowing malicious code injection. #34

Open
vickyguptaa7 opened this issue Apr 27, 2023 · 4 comments
Open

[Security Vulnerability] Allowing malicious code injection. #34

vickyguptaa7 opened this issue Apr 27, 2023 · 4 comments

Comments

@vickyguptaa7
Copy link

I have identified a security vulnerability in the CodeX-API repository. The vulnerability allows an attacker to inject malicious code into the server, which can potentially harm the server and allow unauthorized access to sensitive information. Specifically, an attacker is able to delete files on the server using javascript or other programming language.

This security vulnerability poses a significant threat to the project's integrity and the security of the data stored in the server.

@oybekrustamov
Copy link

Hi. I think using an isolated environment for the Codex API will solve this problem. For example Docker.

@vickyguptaa7
Copy link
Author

Running the Node.js process in non-root mode is also a viable solution. I have raised a pull request to implement this change.

@oybekrustamov
Copy link

@vickyguptaa7 Can you add a memory limit or Used memory in output?

@vickyguptaa7
Copy link
Author

Yeah it can be done by using pidusage npm package.

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

2 participants