-
Notifications
You must be signed in to change notification settings - Fork 844
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
EJS, Server side template injection [email protected] Latest #720
Comments
@pperk this issue was closed shortly after the initial report without comment, can you shed details, was this a false report? I noticed that there was apparently a CVE assigned for this issue, CVE-2023-29827 |
Is there any plan to fix this issue . Its affecting us also !! |
This is clearly addressed in the SECURITY.md for the project: https://github.com/mde/ejs/blob/main/SECURITY.md#out-of-scope-vulnerabilities In short, don't ever, ever give unfiltered access to EJS's |
[email protected] version is showing high severity by Mend scan for React JS application. Please suggest how to get rid of this issue since 3.1.9 is the latest version available in NPM. |
I do not control any of these supposed vulnerability databases. I have sent an email to NVD. I have sent an issue to GH. Please feel free to contact those entities as well, regarding this issue. |
With this approach of detecting vulnerabilities, everything becomes vulnerable, I mean... index.js
everyone, please remove python from your computers. |
any idea on when we can expect a fix for this CVE ? |
Please read the thread. It's not a vulnerability, and I have no control of the databases. Please contact GitHub and NVD about this. |
As an FYI @mde It looks like the organisation that assigned the CVE Number is MITRE themselves - https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2023-29827 So I think you might need to contact MITRE directly through https://cveform.mitre.org/ and requesting a Rejection of the CVE, as they are the ones who can invalidate it. Github and NVD are just feeding this CVE through from MITRE. |
The latest EJS report indicates that the Blackduck scan has been provided, but it states that the issue still persists. |
It looks like they have at least noted it as disputed in the database. I have also contacted MITRE directly through the form. (Thanks to @meganwalker-ibm for the info!) |
Dear all, |
Can you guys solve this problem ? May I know how? I've tried downgrading it still doesn't work. |
Maybe you can find a way to reason with Mitre corporation. My experience on two different projects is that they will add the "Disputed" annotation to their report and never do anything else, include responding to your emails. I shared my experience with Veracode on StackOverflow. Some months later, this started over with Mitre, and the frustration of dealing with them drove me from doing any open source work for a year. Something has to be done to tame these companies. They do extremely important work, but their path seems to end at reporting potential vulnerabilities: verifying them, handling disputes, etc. seems to be skipped altogether. |
@CrossEye However, if he's unwilling to update, there’s not much I can do to assist further. |
I only ended up here because a colleague now has a security tool pinging his projects over this supposed vulnerability, and he knew that I had experience getting another security reporter (Veracode) to actually withdraw a disputed one. However, soon after Mitre came along and recreated it, and for over a year now has been entirely unresponsive to my attempts to get the CVE rejected. I know nothing about ejs. I've only read this thread, but from here it's pretty clear that this is a false vulnerability.
If by "he" you mean whoever owns this project, then there's nothing he can do. There is no vulnerability to fix. Somehow he needs to convince Mitre to change this from DISPUTED to REJECTED. I personally have had no luck in this; maybe others can figure it out. |
I'm sorry, but I'm really not understanding you. Are you saying you are @pperk? Or merely that @pperk opened this issue? If it's the latter and that user is just a security bounty troll, you're not likely to hear much. In any case, the account is six years old and has had a total of ten activities on it in that time, creating a few repositories and a few issues. This is the only activity this year. Are you asking @pperk for an answer? Are you asking @mde for one? Are you asking me? And what precisely is the question that needs an answer?
Good luck with that. I just documented the response I got fifteen months after I started seeking one. The answer in essence was "Bugger off". |
I am here to assist, and I kindly request @pperk to clarify whether EJS still encounters the aforementioned problems. Addressing these issues is imperative as they influence numerous users. If @pperk doesn't respond to this, I urge others who come across this message to report the situation directly to Miter. This step is crucial to ensure there are no known vulnerabilities, thereby potentially offering further support to the community. |
I hope it will help. Maybe if we inundate them with requests, they'll take it seriously. But my experience so far is that they are in the business of reporting suspected vulnerabilities, not in determining whether the vulnerabilities are real, and certainly not in cleaning up behind themselves if they get it wrong. |
@mde: My time is freeing up again to look into this and related issues. Before I do, though, has there been any change? |
@CrossEye No changes. |
I hate to ask this, but has there been any updates to have the CVE revoked? I realize it's has 'disputed' in the description, but it's been like this for 8 months. I'm sure there are other folks w/security teams (like me) who are getting told to get rid of this security flag or dump the offender, despite the description. |
yes same issue |
[email protected] version is showing high severity by Polaris scan for React JS application. Please suggest how to get rid of this issue since 3.1.10 is the latest version available in NPM. |
I think, v3.1.10 is more related to this issue hotfix: in package.json override the latest version {
// ...
"overrides": {"ejs":"3.1.9"}
// ...
} |
Suppress CVE-2023-29827 per mde/ejs#720
Suppress CVE-2023-29827 per mde/ejs#720
I am learning about ssti, and I got to learn about this "vulnerability", and i am writing it between double quotes, because without to offend you @pperk , it doesn't seem really a vulnerability to me. However, my question to you, is: why would someone have the ability to edit the template file? and if they can, so it means that they already have code execution on the server. so I really don't understand this, but I would love to hear your point of view |
If the ejs file is controllable, template injection can be implemented through the configuration settings of the closeDelimiter parameter.It can easily bypass the fix for CVE-2022-29078 in version 3.1.7.
15ee698
index.js
page.ejs
package.json
The poc looks like this:
Come to this branch option to realize code splicing execution.
ejs/lib/ejs.js
Line 844 in aed0124
The text was updated successfully, but these errors were encountered: