Coder Social home page Coder Social logo

script errors about shellshocker HOT 5 CLOSED

neutronscott avatar neutronscott commented on July 28, 2024
script errors

from shellshocker.

Comments (5)

mhensler avatar mhensler commented on July 28, 2024

Does the above commit address your bash/ksh concerns?

I didn't understand the need for the suggested modification to L49. Can you explain?

from shellshocker.

neutronscott avatar neutronscott commented on July 28, 2024

That commit should make the script sh compat again, yes.

It is just not good practice to parse ls. It shouldn't be an issue in this script since all the filenames are known, but it's not needed. the shell can iterate over files using globbing without using ls. ls is for human consumption.

from shellshocker.

sock3t avatar sock3t commented on July 28, 2024

When I run the shellshock_test.sh on one of my debian 7.0 systems I get a segfault:

~# ./shellshock_test.sh
CVE-2014-6271 (original shellshock): VULNERABLE
./shellshock_test.sh: line 16: 13511 Segmentation fault bash -c "f() { x() { _;}; x() { _;} <<a; }" 2> /dev/null
CVE-2014-6277 (segfault): VULNERABLE
CVE-2014-6278 (Florian's patch): VULNERABLE
CVE-2014-7169 (taviso bug): VULNERABLE
CVE-2014-7186 (redir_stack bug): not vulnerable
CVE-2014-7187 (nested loops off by one): not vulnerable
CVE-2014-//// (exploit 3 on http://shellshocker.net/): not vulnerable

As far as I understood the shell code it is no harm to the proper functioning of the shell shock test but it can be avoided ;)
I modified line 16 to look like this, and the segfault is not shown anymore:

eval CVE20146277=$((bash -c "f() { x() { _;}; x() { _;} <<a; }" 2>/dev/null || echo vulnerable) | grep 'vulnerable' | wc -l)

HTH and keep up the good work!

cheers

from shellshocker.

CptPlastic avatar CptPlastic commented on July 28, 2024

@sock3t nice find

Line 50 poses a segfault also

from shellshocker.

neutronscott avatar neutronscott commented on July 28, 2024

5y old issue. bye.

from shellshocker.

Related Issues (13)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.