-
Notifications
You must be signed in to change notification settings - Fork 33
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
CVE-2021-3156 #35
base: main
Are you sure you want to change the base?
CVE-2021-3156 #35
Conversation
…ulnerability) and CVE-2021-44228 (Log4j)
…emote Code Execution (RCE))
…un of install.sh, moved build and run into ansible
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 don't forget to remove the venv directory
@@ -0,0 +1,3 @@ | |||
blueprint: ubuntu2204 | |||
ubuntu: | |||
playbook: ubuntu.yml |
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 can't find the exploit execution code in cvex.yml
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.
You are right, I didn't realize I accidentally deleted it when trying to clean up code
CVE-2021-3156/ubuntu.yml
Outdated
remote_src: yes | ||
|
||
# Compile and install the vulnerable sudo version | ||
- name: Compile and install vulnerable sudo |
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.
It fails:
2024-11-21 12:00:20,277 - INFO - [ubuntu] TASK [Compile and install vulnerable sudo] *************************************
2024-11-21 12:00:21,582 - INFO - [ubuntu] fatal: [ubuntu]: FAILED! => {"changed": true, "cmd": "./configure --prefix=/usr --enable-static\nmake\nmake install\n", "delta": "0:00:00.492920", "end": "2024-11-21 11:00:19.482098", "msg": "non-zero return code", "rc": 127, "start": "2024-11-21 11:00:18.989178", "stderr": "configure: error: in/opt/sudo/sudo-1.8.31':\nconfigure: error: no acceptable C compiler found in $PATH\nSee
config.log' for more details\n/bin/sh: 2: make: not found\n/bin/sh: 3: make: not found", "stderr_lines": ["configure: error: in/opt/sudo/sudo-1.8.31':", "configure: error: no acceptable C compiler found in $PATH", "See
config.log' for more details", "/bin/sh: 2: make: not found", "/bin/sh: 3: make: not found"], "stdout": "configure: Configuring Sudo version 1.8.31\nchecking for gcc... no\nchecking for cc... no\nchecking for cl.exe... no", "stdout_lines": ["configure: Configuring Sudo version 1.8.31", "checking for gcc... no", "checking for cc... no", "checking for cl.exe... no"]}
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.
yeah the installation of the sudo is failing right now, I tried a bunch of ways around it but its just not working
It still fails at this stage:
|
ok I got rid of this section so that it doesn't error anymore |
I get this:
Does it work on your side? |
no. I wasn't able to install the vulnerable sudo on the machine, I just removed the code that caused the error. This is just what I had done by the deadline we had |
This is my code, it is still unable to properly install sudo though.