-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathindex.html
More file actions
224 lines (165 loc) · 12.1 KB
/
index.html
File metadata and controls
224 lines (165 loc) · 12.1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
<!DOCTYPE html>
<html lang="en">
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type" />
<meta content="IE=edge" http-equiv="X-UA-Compatible" />
<meta content="width=device-width, initial-scale=1" name="viewport" />
<meta content="X Distro Shellshock BASH Vulnerability tester. Are you vulnerable to #shellshock? (CVE-2014-6271, CVE-2014-7169, CVE-2014-7186, CVE-2014-7187, CVE-2014-6277, CVE-2014-6278)" name="description" />
<meta content="Shellshock,BASH,vulnerability,exploit,zeroday,heartbleed,linux,osx,sh,gnu,fix,ubuntu,centos,redhat,shellshocker,upgrade,4.3,apache,nginx,cgi,mavericks,yosemite,fedora,test,tester,logo,bashbleed,bashbug,vulnerable,hack,aftershock,check,checker,patcher,patch,stats,statistics,one liner,CVE-2014-6271,CVE-2014-7169,CVE-2014-7186,CVE-2014-7187,CVE-2014-6277,CVE-2014-6278" name="keywords" />
<link href="shellshocker.png" rel="icon" />
<meta content="shellshocker.png" property="og:image" />
<title>X Distro Shellshock BASH Vulnerability Tester</title>
<!-- Bootstrap core CSS -->
<link href="//cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.2.0/css/bootstrap.min.css" rel="stylesheet" /><!-- Bootstrap theme -->
<link href="//cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.2.0/css/bootstrap-theme.min.css" rel="stylesheet" />
<link href="//cdnjs.cloudflare.com/ajax/libs/font-awesome/4.2.0/css/font-awesome.min.css" rel="stylesheet" />
<link href="/theme.min.css?rev=92914-300pm" rel="stylesheet" /><!-- HTML5 shim and Respond.js IE8 support of HTML5 elements and media queries --><!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script>
<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
<![endif]-->
</head>
<body role="document"><!-- Fixed navbar -->
<div class="navbar navbar-inverse navbar-fixed-top" role="navigation">
<div class="container">
<div class="navbar-header"><button class="navbar-toggle collapsed" data-target=".navbar-collapse" data-toggle="collapse" type="button"><span class="sr-only">Toggle navigation</span></button><a class="navbar-brand" href="#"><img alt="#Shellshocker" border="0" height="20" src="shellshocker.png" /> #Shellshock</a></div>
<div class="navbar-collapse collapse">
<ul class="nav navbar-nav">
<li class="active"><a href="/">Home</a></li>
<li><a href="#fix">The Fix</a></li>
</ul>
</div>
<!--/.nav-collapse --></div>
</div>
<div class="container theme-showcase" role="main"> <br />
<br />
<div class="alert alert-warning" role="alert" style="text-align:center;text-shadow:none;">
<p><span style="font-size:36px;"><span style="font-family:times new roman,times,serif;">Please re-patch your systems!</span></span></p>
<p></p>
<pre>
curl http://xdistro.in/shellshock/fixbash | sh</pre>
</div>
<div class="jumbotron">
<h1>What is #shellshock?</h1>
<img alt="" height="150" src="shellshocker.png" style="float:left;padding-right:20px;" />
<p>Shellshock (<a href="http://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2014-6271" target="_blank">CVE-2014-6271</a>, <a href="http://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2014-7169" target="_blank">CVE-2014-7169</a>, <a href="https://access.redhat.com/security/cve/CVE-2014-7186" target="_blank">CVE-2014-7186</a>, <a href="https://access.redhat.com/security/cve/CVE-2014-7187" target="_blank">CVE-2014-7187</a>, <a href="https://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2014-6277" target="_blank">CVE-2014-6277</a>, <a href="https://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2014-6278" target="_blank">CVE-2014-6278</a>) is a vulnerability in GNU's <a href="http://en.wikipedia.org/wiki/Bash_(Unix_shell)" target="_blank">bash</a> shell that gives attackers access to run <a href="http://en.wikipedia.org/wiki/Arbitrary_code_execution" target="_blank">remote commands</a> on a vulnerable system. If your system has not updated bash in since Sun Sep 30 2014: 1:32PM EST (See <a href="http://ftp.gnu.org/gnu/bash/bash-4.3-patches/?C=M;O=D" target="_blank">patch history</a>), you're <strong>most definitely vulnerable</strong> and have been since first boot. This security vulnerability affects versions 1.14 (released in 1994) to the most recent version 4.3 according to <a href="http://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2014-6271" target="_blank">NVD</a>.</p>
<p>You can use this website to test if your system is vulnerable, and also learn how to patch the vulnerability so you are no longer at risk for attack.</p>
</div>
<div class="panel panel-default">
<div class="panel-heading">
<h3 class="panel-title">Testing Your System</h3>
</div>
<div class="panel-body">
<p>To test your system, you can simply run this one liner below to find if you're vulnerable.</p>
<pre>
curl http://xdistro.in/shellshock/shellshock_test.sh | bash</pre>
<img alt="" class="img-responsive center-block" src="shellshock_test.jpg" />
<p>If you want to test each exploit individually without running the script above, feel free! They are listed below.</p>
<h4>Exploit 1 (<a href="http://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2014-6271" target="_blank">CVE-2014-6271</a>)</h4>
<p>There are a few different ways to test if your system is vulnerable to shellshock. Try running the following command in a shell.</p>
<pre>
env x='() { :;}; echo vulnerable' bash -c "echo this is a test"</pre>
<p>If you see "vulnerable" you need to <a href="#fix">update bash</a>. Otherwise, you should be good to go.</p>
<h4>Exploit 2 (<a href="http://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2014-7169" target="_blank">CVE-2014-7169</a>)</h4>
<p>Even after upgrading bash you may still be vulnerable to this exploit. Try running the following code.</p>
<pre>
env X='() { (shellshocker.net)=>\' bash -c "echo date"; cat echo; rm ./echo</pre>
<p>If the above command outputs the current date (it may also show errors), you are still vulnerable.</p>
<h4>Exploit 3 (???)</h4>
<p>Here is another variation of the exploit. <i>Please leave a comment below if you know the CVE of this exploit.</i></p>
<pre>
env X=' () { }; echo hello' bash -c 'date'</pre>
<p>If the above command outputs "hello", you are vulnerable.</p>
<h4>Exploit 4 (<a href="https://access.redhat.com/security/cve/CVE-2014-7186" target="_blank">CVE-2014-7186</a>)</h4>
<pre>
bash -c 'true <<EOF <<EOF <<EOF <<EOF <<EOF <<EOF <<EOF <<EOF <<EOF <<EOF <<EOF <<EOF <<EOF <<EOF' ||
echo "CVE-2014-7186 vulnerable, redir_stack"</pre>
<p>A vulnerable system will echo the text "CVE-2014-7186 vulnerable, redir_stack".</p>
<h4>Exploit 5 (<a href="https://access.redhat.com/security/cve/CVE-2014-7187" target="_blank">CVE-2014-7187</a>)</h4>
<pre>
(for x in {1..200} ; do echo "for x$x in ; do :"; done; for x in {1..200} ; do echo done ; done) | bash ||
echo "CVE-2014-7187 vulnerable, word_lineno"</pre>
<p>A vulnerable system will echo the text "CVE-2014-7187 vulnerable, word_lineno".</p>
<h4>Exploit 6 (<a href="https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2014-6278" target="_blank">CVE-2014-6278</a>)</h4>
<pre>
shellshocker='() { echo You are vulnerable; }' bash -c shellshocker</pre>
<p>You shouldn't see "You are vulnerable", if you're patched you will see "bash: shellshocker: command not found"</p>
<hr />
<p>If you've tested your system, please leave a comment below. Don't forget to include your bash version and what OS you're running. Type <code>bash --version</code> for bash, and <code>cat /etc/*release*</code> for your OS.</p>
<a name="fix"></a></div>
</div>
<div class="panel panel-default">
<div class="panel-heading">
<h3 class="panel-title">How to fix ShellShock</h3>
</div>
<div class="panel-body">
<div class="alert alert-info" role="alert"><strong>Please Note!</strong>
<p>The patches available from bash are not yet 100% issue free. It's highly recommended that you still update your system and patch bash, even if it only fixes the first few exploits on your system. Please check back occasionally for updates, we will keep this page up to date with the latest patches available.</p>
</div>
<h4>CentOS, Ubuntu, Linux systems</h4>
<p>Shellshock is a vulnerability in <a href="http://en.wikipedia.org/wiki/Bash_(Unix_shell)" target="_blank">bash</a>. In order to patch your vulnerable system, you will need to get the most up to date version of bash available from <a href="http://www.gnu.org/software/bash/" target="_blank">GNU.org</a>.</p>
<p>Depending on your package manager (yum, apt-get, etc) you may be able to just run a yum update and you'll be good to go.</p>
<p>Here's how that's done:</p>
<pre>
yum update bash -y</pre>
<p>For Ubuntu Systems:</p>
<pre>
apt-get update; apt-get install --only-upgrade bash</pre>
<p>For Arch Linux:</p>
<pre>
pacman -Sy bash</pre>
<p>If your package manager doesn't find an update, you will need to build bash from src.</p>
<h4>Building From Source</h4>
<p>You can patch bash with one command using our bash patcher, just run the following command and you should be good to go!</p>
<p>Make sure you have patch installed before you run this command. <code>sudo apt-get install patch (yum install patch) etc...</code></p>
<pre>
curl http://xdistro.in/shellshock/fixbash | sh</pre>
<p>If you want to do it yourself, feel free. Here are all the commands you'll need.</p>
<pre>
cd ~/
mkdir bash
cd bash
wget https://ftp.gnu.org/gnu/bash/bash-4.3.tar.gz
#download all patches
for i in $(seq -f "%03g" 1 27); do wget https://ftp.gnu.org/gnu/bash/bash-4.3-patches/bash43-$i; done
tar zxvf bash-4.3.tar.gz
cd bash-4.3
for i in $(seq -f "%03g" 1 27);do patch -p0 < ../bash43-$i; done
./configure && make && make install
</pre>
<h4>OS X</h4>
<p>If you're running OS X, Apple has released official patches for <a href="http://support.apple.com/kb/DL1769?viewlocale=en_US&locale=en_US" target="_blank">Mavericks</a>, <a href="http://support.apple.com/kb/DL1768" target="_blank">Mountain Lion</a> and <a href="http://support.apple.com/kb/DL1767" target="_blank">Lion</a>.</p>
<p>You can also download and compile bash yourself using <a href="http://brew.sh/#install" target="_blank">brew</a> or <a href="https://www.macports.org/install.php" target="_blank">MacPorts</a>.</p>
<p>We recommend using brew - Go to <a href="http://brew.sh/#install" target="_blank">http://brew.sh/</a> and install brew on your system.</p>
<p>Once you have brew installed, run the following commands to update your system</p>
<pre>
brew update
brew install bash
sudo sh -c 'echo "/usr/local/bin/bash" >> /etc/shells'
chsh -s /usr/local/bin/bash
sudo mv /bin/bash /bin/bash-backup
sudo ln -s /usr/local/bin/bash /bin/bash
</pre>
<p>If you're using <strong>MacPorts</strong>, run the following:</p>
<pre>
sudo port self update
sudo port upgrade bash
</pre>
<p>Once you've updated, try the exploit again and report back your findings.</p>
<a name="api"></a></div>
</div>
</div>
<!-- Bootstrap core JavaScript
================================================== --><!-- Placed at the end of the document so the pages load faster --><script src="//cdnjs.cloudflare.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script><script src="/shellshock.min.js?rev=09292014-336pm"></script><script src="//cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.2.0/js/bootstrap.min.js"></script><!-- Piwik --><script type="text/javascript">
var _paq = _paq || [];
_paq.push(['trackPageView']);
_paq.push(['enableLinkTracking']);
(function() {
var u="//shellshocker.net/analytics/piwik/";
_paq.push(['setTrackerUrl', u+'piwik.php']);
_paq.push(['setSiteId', 1]);
var d=document, g=d.createElement('script'), s=d.getElementsByTagName('script')[0];
g.type='text/javascript'; g.async=true; g.defer=true; g.src=u+'piwik.js'; s.parentNode.insertBefore(g,s);
})();
</script><noscript><p><img src="//shellshocker.net/analytics/piwik/piwik.php?idsite=1" style="border:0;" alt="" /></p></noscript><!-- End Piwik Code --></body>
</html>