|
From: | Pierre Gaston |
Subject: | Re: Does bash treat segment fault causing by scripts as security bugs ? |
Date: | Wed, 15 Feb 2017 16:45:22 +0200 |
What If I find a bug bypassing the FUNCNEST limitation ?I mean I found a bug which about some paser logic in bash,finially It will crash bash, And FUNCNEST cannot stop it from crashing bash.
2017-02-15 21:01 GMT+08:00 Pierre Gaston <pierre.gaston@gmail.com>:bash has a special variable FUNCNEST to limit the recursion if you want to prevent infinite recursion.On Wed, Feb 15, 2017 at 11:44 AM, kkk K <3n4t5yu@gmail.com> wrote:for example,simple bash recur function call:======================#!/bin/bashfunction test(){test $1}test 1======================sincerely for your replyHowever, this subject has been discussed multiple times, it's easy to write arbitrary code that crashes bash (not to mention the whole machine).
This doesn't necessarily mean that there is a bug in bash, but in your code.
If you can run arbitrary code in a shell (or even if your script doesn't validate its input), your security is already compromised.
[Prev in Thread] | Current Thread | [Next in Thread] |