# Request: Support for a memory_limit exploit paper needed

- Thread: https://externals.io/message/11787
- Original archive: https://news-web.php.net/php.internals/11787
- Started by Stefan Esser on 2004-08-01T12:33:04+00:00
- Messages: 4
- Reply by email to internals@lists.php.net
- More for agents: search with https://externals.io/search.md?q={query} · RFCs at https://externals.io/rfc.md · JSON API at https://externals.io/api · documentation at https://externals.io/llms.txt

---

## #11787 — Stefan Esser — 2004-08-01T12:33:04+00:00

URL: https://externals.io/message/11787#11787

Hi,

I know that this is maybe a little bit off-topic, but I assume that most 
people on this list are used to compile PHP just for testing purposes.

I am currently planning to write a paper about the memory_limit security 
bug that was announced last month. Actually the paper will explain in 
detail what the bug is and how it can be exploited to execute arbitrary 
code.

The paper itself will be written because a few people requested it, a 
lot of media reported it as a buffer overflow (which is completely 
wrong) and just because I need some training in writing papers for 
university.

So if anyone here would like to support me writing this paper just grab 
a copy of http://security.e-matters.de/mlxdebug.tgz
This package has some special patches in it (for PHP 4.3.2-4.3.7) that 
write debug output for every emalloc/efree/erealloc and 
php_register_variable_ex call into a file within /tmp.

The package includes a description how the test works. It basicly 
consists of compiling PHP on your normal platform: f.e. OpenBSD Apache2 
CGI. You should just add --enable-memory-limit to your standard 
configure line and turn register_globals on. The rest is all explained 
in the package.

Stefan Esser

PS: those debug files would help me a lot to proof that a few things are 
easier than one thinks.

---

## #11799 — Marcus Boerger — 2004-08-01T21:49:49+00:00

URL: https://externals.io/message/11787#11799 · In reply to: #11787

Hello Stefan,

basically you want to explain everybody how to use those millions
of unpatched servers.

marcus

Sunday, August 1, 2004, 2:33:04 PM, you wrote:

> Hi,

> I know that this is maybe a little bit off-topic, but I assume that most 
> people on this list are used to compile PHP just for testing purposes.

> I am currently planning to write a paper about the memory_limit security 
> bug that was announced last month. Actually the paper will explain in 
> detail what the bug is and how it can be exploited to execute arbitrary 
> code.

> The paper itself will be written because a few people requested it, a 
> lot of media reported it as a buffer overflow (which is completely 
> wrong) and just because I need some training in writing papers for 
> university.

> So if anyone here would like to support me writing this paper just grab 
> a copy of http://security.e-matters.de/mlxdebug.tgz
> This package has some special patches in it (for PHP 4.3.2-4.3.7) that 
> write debug output for every emalloc/efree/erealloc and 
> php_register_variable_ex call into a file within /tmp.

> The package includes a description how the test works. It basicly 
> consists of compiling PHP on your normal platform: f.e. OpenBSD Apache2 
> CGI. You should just add --enable-memory-limit to your standard 
> configure line and turn register_globals on. The rest is all explained 
> in the package.

> Stefan Esser

> PS: those debug files would help me a lot to proof that a few things are 
> easier than one thinks.




-- 
Best regards,
 Marcus                            mailto:helly@php.net

---

## #11800 — Moriyoshi Koizumi — 2004-08-01T23:11:03+00:00

URL: https://externals.io/message/11787#11800 · In reply to: #11787

Hi,

> The package includes a description how the test works. It basicly 
> consists of compiling PHP on your normal platform: f.e. OpenBSD 
> Apache2 CGI. You should just add --enable-memory-limit to your 
> standard configure line and turn register_globals on. The rest is all 
> explained in the package.

Is there any chance enabling mbstring will affect the results of the 
tests?
As far as I experimented in the past, it will unlikely do.

Moriyoshi

---

## #11835 — Moriyoshi Koizumi — 2004-08-02T22:35:44+00:00

URL: https://externals.io/message/11787#11835 · In reply to: #11800

What a stupid question I asked here... Nevermind.

Moriyoshi



> Hi,
>
> > […]
>
> Is there any chance enabling mbstring will affect the results of the 
> tests?
> As far as I experimented in the past, it will unlikely do.
>
> Moriyoshi
