Skip to content

Snuffleupagus 0.10.0 when loaded via Apache only applies ruleset when it has no comments #477

Open
@demonfoo

Description

I'm experimenting with using Snuffleupagus to further secure our PHP runtime environments. With 0.9.0, the ruleset I'd worked up applies and catches denied function calls, and with 0.10.0, when run via the PHP CLI it does as well.

However, I discovered that with 0.10.0, the same ruleset does... literally nothing with PHP loaded into Apache. I removed everything but a single drop() directive and it worked, then I tried re-adding some other material and it again didn't work.

A bit more experimentation revealed that, when I removed all the inline comments, the ruleset then worked. I'm not sure why it's only when loaded via Apache, but that is definitely the case; after removing comments, the function drop() directives work as expected.

Please let me know what further information I can provide. Thanks.

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions