Re: Invision Vulnerabilities, including remote code execution

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



>  sources/action_public/search.php line 1261
>  $this->output = preg_replace(
>  "#(value=[\"']{$this->ipsclass->input['lastdate']}[\"'])#i", "\\1
>  selected='selected'",
>  $this->output );
>
>...
>an #e modifier is added and then %00 used which will be parsed as a
>null byte and truncate the string thus removing the original )#i
>part.

This is a very interesting bug: modifying a regular expression in a
way that accesses the execution functionality.

In general, regexp hacking seems to be a fruitful area for research.
As another example, null characters have been used to bypass
security-relevant regexp checks.

As "input validation" becomes more frequent, it seems likely that
these kinds of vulns will be introduced more often.  Other languages
with rich regexp capabilities might be subject to similar issues.

- Steve

[Index of Archives]     [Linux Security]     [Netfilter]     [PHP]     [Yosemite News]     [Linux Kernel]

  Powered by Linux