-
Notifications
You must be signed in to change notification settings - Fork 33
CVE-2024-5129 #16
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: main
Are you sure you want to change the base?
CVE-2024-5129 #16
Conversation
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.
The exploit seems to be working, but could you please add another command after curl, that would prove that the 'lunary' database was indeed deleted?
CVE-2024-5129/ubuntu1.yml
Outdated
|
||
- name: Install nvm | ||
ansible.builtin.shell: > | ||
curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.39.1/install.sh | bash |
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.
Do we need exactly 0.39.1? If we do, please move this file to the data folder, do not pull it by URL. Otherwise use https://raw.githubusercontent.com/creationix/nvm/master/install.sh
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.
no, we don't need the specific version. I've just changed it to use https://raw.githubusercontent.com/creationix/nvm/master/install.sh
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.
I've also added another command after curl that shows we deleted the database
CVE-2024-5129/ubuntu1.yml
Outdated
|
||
- name: Install node and project deps | ||
shell: > | ||
. $HOME/.nvm/nvm.sh && nvm install 20.18.0 && cd /tmp/lunary && npm install && npm run migrate:db |
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.
Does "nvm install 20.18.0" pull something from the Internet? Is it possible to keep this version of that thing in the data folder? Imagine 20.18.0 is not available anymore for download. What do we do?
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.
I added a version in the data folder
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.
What I meant is: please not only put the archive to the data folder, but also install it from the file. My mistake, sorry if it wasn't obvious.
Still waiting for node-v20.18.0-darwin-x64.tar.gz to be used during installation, then I'll test the changes |
Hi Oleg, |
It fails at this stage:
|
Hi Oleg, |
CVE-2024-5129/ubuntu1.yml
Outdated
export NODE_PATH=/desired/install/path/node-v20.18.0-darwin-x64 && | ||
export PATH=$NODE_PATH/bin:$PATH && | ||
cd /tmp && | ||
curl -O https://nodejs.org/dist/v20.18.0/node-v20.18.0-darwin-x64.tar.gz && |
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.
Please do not pull this package from the Internet. It's already in the data folder, please install it from the file.
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.
just made some changes, does it look ok?
This variant still doesn't work:
Could you please test your changes before commiting them? |
The error message above can't find node-v20.18.0-darwin-x64.tar.gz because it hasn't been copied to ubuntu1. This file is only 112 bytes in size, and "darwin" in the name implies that the archive targets MacOS (we need the one for Ubuntu). I tried to use https://nodejs.org/dist/v20.18.0/node-v20.18.0-linux-x64.tar.xz from https://nodejs.org/en/blog/release/v20.18.0, but I still get these errors:
|
No description provided.