Goal Reached Thanks to every supporter — we hit 100%!

Goal: 1000 CNY · Raised: 1336 CNY

100%

CVE-2014-6271 PoC — GNU Bash 远程代码执行漏洞

Source
Associated Vulnerability
Title: GNU Bash 远程代码执行漏洞 (CVE-2014-6271)
Description:GNU Bash through 4.3 processes trailing strings after function definitions in the values of environment variables, which allows remote attackers to execute arbitrary code via a crafted environment, as demonstrated by vectors involving the ForceCommand feature in OpenSSH sshd, the mod_cgi and mod_cgid modules in the Apache HTTP Server, scripts executed by unspecified DHCP clients, and other situations in which setting the environment occurs across a privilege boundary from Bash execution, aka "ShellShock." NOTE: the original fix for this issue was incorrect; CVE-2014-7169 has been assigned to cover the vulnerability that is still present after the incorrect fix.
Description
Chef cookbook that will fail if bash vulnerability found per CVE-2014-6271
Readme
bash-CVE-2014-6271 Cookbook
===========================

This Chef cookbook contains a default recipe that will fail 
your Chef run if a bash is found and that bash is vulnerable
to the remote exploit described in CVE-2014-6271. The places
to look for `bash` can be configured in the
`node['bash-CVE-2014-6271']['bashes']` attribute (see below)

Requirements
------------

Should work on any UNIX/Linux. Please report problems (ideally with patches)

Attributes
----------

* `node['bash-CVE-2014-6271']['bashes']` - A required array of possible bash executables to test for the vulnerability. Defaults to `/bin/bash` and `/usr/local/bin/bash`

Usage
-----
#### bash-CVE-2014-6271::default

Just include `bash-CVE-2014-6271` in your node's `run_list`:

```json
{
  "name":"my_node",
  "run_list": [
    "recipe[bash-CVE-2014-6271]"
  ]
}
```

Contributing
------------
1. Fork the repository on Github
2. Create a named feature branch (like `add_component_x`)
3. Write your change
4. Write tests for your change (if applicable)
5. Run the tests, ensuring they all pass
6. Submit a Pull Request using Github

License and Authors
-------------------
- Author:: Jeff Blaine (<jblaine@kickflop.net>)

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

    http://www.apache.org/licenses/LICENSE-2.0

    Unless required by applicable law or agreed to in writing, software
    distributed under the License is distributed on an "AS IS" BASIS,
    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    See the License for the specific language governing permissions and
    limitations under the License.

File Snapshot

Log in to view the POC file snapshot cached by Shenlong Bot

Log in to view
Remarks
    1. It is advised to access via the original source first.
    2. Local POC snapshots are reserved for subscribers — if the original source is unavailable, the local mirror is part of the paid plan.
    3. Mirroring, verifying, and maintaining this POC archive takes ongoing effort, so local snapshots are a paid feature. Your subscription keeps the archive online — thank you for the support. View subscription plans →