<feed xmlns='http://www.w3.org/2005/Atom'>
<title>snuffleupagus/src/sp_utils.c, branch log2file</title>
<subtitle>Security module for php7 and php8 - Killing bugclasses and virtual-patching the rest! 
</subtitle>
<id>http://git.dustri.org/snuffleupagus/atom?h=log2file</id>
<link rel='self' href='http://git.dustri.org/snuffleupagus/atom?h=log2file'/>
<link rel='alternate' type='text/html' href='http://git.dustri.org/snuffleupagus/'/>
<updated>2025-10-24T21:55:13Z</updated>
<entry>
<title>feat(log): add the possibility to log to a file</title>
<updated>2025-10-24T21:55:13Z</updated>
<author>
<name>jvoisin</name>
</author>
<published>2025-10-24T21:50:18Z</published>
<link rel='alternate' type='text/html' href='http://git.dustri.org/snuffleupagus/commit/?id=6ea4278a512bc9f1f816844222e65a4ea670db8e'/>
<id>urn:sha1:6ea4278a512bc9f1f816844222e65a4ea670db8e</id>
<content type='text'>
</content>
</entry>
<entry>
<title>fix(log): systematically drop when .drop() is used</title>
<updated>2025-10-02T13:22:08Z</updated>
<author>
<name>jvoisin</name>
</author>
<published>2025-10-02T13:22:08Z</published>
<link rel='alternate' type='text/html' href='http://git.dustri.org/snuffleupagus/commit/?id=da8c7aebc5602c04b771ada71a098ccb23d83a48'/>
<id>urn:sha1:da8c7aebc5602c04b771ada71a098ccb23d83a48</id>
<content type='text'>
When the `php` logging facility is used, the error could have been caught by
using `set_error_handler` and whatnot. This commit ensures that if the
`.drop()` option is set, we're calling `zend_bailout()` that can't be caught.

An attacker could have used this issue to silently perform some recon of the
running environment. This isn't considered a vulnerability as an attacker
with arbitrary php code execution can simply use the use-after-free of the day
to gain arbitrary (native) code execution anyway, after detecting that
Snuffleupagus is in use, to take little risks of detection.
</content>
</entry>
<entry>
<title>Rename a handful of global constants</title>
<updated>2025-10-02T10:16:29Z</updated>
<author>
<name>jvoisin</name>
</author>
<published>2025-10-02T10:16:29Z</published>
<link rel='alternate' type='text/html' href='http://git.dustri.org/snuffleupagus/commit/?id=09bc3ffc8734cf2437e14ab123c7b732db53b836'/>
<id>urn:sha1:09bc3ffc8734cf2437e14ab123c7b732db53b836</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Fix a portability issue</title>
<updated>2024-06-14T17:26:31Z</updated>
<author>
<name>jvoisin</name>
</author>
<published>2024-06-14T17:26:31Z</published>
<link rel='alternate' type='text/html' href='http://git.dustri.org/snuffleupagus/commit/?id=b005df282da43a2ba17b38e7da06a69353ea2845'/>
<id>urn:sha1:b005df282da43a2ba17b38e7da06a69353ea2845</id>
<content type='text'>
This should fix the following compilation issue:

```
/wrkdirs/usr/ports/security/snuffleupagus/work-php83/snuffleupagus-0.10.0/src/sp_utils.c:438:37: error: too few arguments provided to function-like macro invocation
  438 |     memcpy(mb_name, ZEND_STRL("mb_"));
      |                                     ^
/usr/include/ssp/string.h:117:9: note: macro 'memcpy' defined here
  117 | #define memcpy(dst, src, len) __ssp_bos_check3(memcpy, dst, src, len)
```
</content>
</entry>
<entry>
<title>Declare file local variables and functions static</title>
<updated>2024-06-06T14:27:31Z</updated>
<author>
<name>Christian Göttsche</name>
</author>
<published>2024-05-29T18:38:33Z</published>
<link rel='alternate' type='text/html' href='http://git.dustri.org/snuffleupagus/commit/?id=d82ab8d20191a9ebdb83f918c62fc6c32f068b01'/>
<id>urn:sha1:d82ab8d20191a9ebdb83f918c62fc6c32f068b01</id>
<content type='text'>
Avoid missing prototype warnings by declaring variables and functions
that are only used in a single file static.
</content>
</entry>
<entry>
<title>Url encode functions arguments when logging them</title>
<updated>2023-02-02T12:17:22Z</updated>
<author>
<name>jvoisin</name>
</author>
<published>2023-02-01T20:12:58Z</published>
<link rel='alternate' type='text/html' href='http://git.dustri.org/snuffleupagus/commit/?id=2dcf2a2d7578d1e43ee7e3fa69386ccc5afebbf0'/>
<id>urn:sha1:2dcf2a2d7578d1e43ee7e3fa69386ccc5afebbf0</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Fix a possible NULL-byte truncation when outputting parameters in the logs</title>
<updated>2023-02-01T19:35:23Z</updated>
<author>
<name>jvoisin</name>
</author>
<published>2023-02-01T19:35:23Z</published>
<link rel='alternate' type='text/html' href='http://git.dustri.org/snuffleupagus/commit/?id=f4d3c01bd196400548f5712223171007563ab834'/>
<id>urn:sha1:f4d3c01bd196400548f5712223171007563ab834</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Add sp.log_max_len</title>
<updated>2023-01-31T19:25:14Z</updated>
<author>
<name>jvoisin</name>
</author>
<published>2023-01-31T19:16:21Z</published>
<link rel='alternate' type='text/html' href='http://git.dustri.org/snuffleupagus/commit/?id=78e451eaf99e8f239867def2d8220dfa348cc167'/>
<id>urn:sha1:78e451eaf99e8f239867def2d8220dfa348cc167</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Portability improvements for PHP8.2</title>
<updated>2022-12-09T19:03:22Z</updated>
<author>
<name>jvoisin</name>
</author>
<published>2022-12-08T20:08:38Z</published>
<link rel='alternate' type='text/html' href='http://git.dustri.org/snuffleupagus/commit/?id=110daa81c3b11ec102daf4ee634e2f3d2e9c5f36'/>
<id>urn:sha1:110daa81c3b11ec102daf4ee634e2f3d2e9c5f36</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Even more const!</title>
<updated>2022-07-13T19:25:04Z</updated>
<author>
<name>jvoisin</name>
</author>
<published>2022-07-13T19:25:04Z</published>
<link rel='alternate' type='text/html' href='http://git.dustri.org/snuffleupagus/commit/?id=ed87e551efd0160f1944a5e97158ab258db65eaf'/>
<id>urn:sha1:ed87e551efd0160f1944a5e97158ab258db65eaf</id>
<content type='text'>
</content>
</entry>
</feed>
