summaryrefslogtreecommitdiff
path: root/src/tests (follow)
AgeCommit message (Collapse)Author
2017-12-28Implement regexp support for cookies encryptionThibault "bui" Koechlin
It's now possible to encrypt cookies matching a specific regexp. This should close #106
2017-12-28Add two tests to verify that we can hook indirect callsjvoisin
This should close #104
2017-12-28Implement hooking on user-defined functions return valuesjvoisin
This should close #99, thanks to @blotus for the implementation idea!
2017-12-27Implement simulation mode for cookies (de/en)cryptionjvoisin
This should close #102 This commit can be useful for two use-cases: 1. When deploying Snuffleupagus on big CMS like Magento, and not knowing what cookies are modified via javascript. 2. When deploying Snuffleupagus on big websites: you don't want to disconnect every single user at once. When simulation is enabled, if the decryption fails, a log message is now issued, and the cookie value taken as it (since odds are that it's non-encrypted).
2017-12-21Add coverageslefevre
2017-12-21Add testslefevre
2017-12-21Remove the now useless `validate_str` functionxXx-caillou-xXx
2017-12-21Add testslefevre
2017-12-21Add some tests (#96)xXx-caillou-xXx
2017-12-21Add a constant-related testjvoisin
2017-12-20Better parsing of the rulesxXx-caillou-xXx
Thanks to this huge commit from @xXx-caillou-xXx, we can now write amazingly flexible rules.
2017-12-20Make `setcookie` return truexXx-caillou-xXx
We forgot to set a return value to the setcookie function, thus always returning false. Since very few frameworks/developers are checking the return value, it went unnoticed until we played with Magento, who effectively checks the return value.
2017-12-18Fix cookie encryptionxXx-caillou-xXx
Previously, when a cookie was set with the `httpOnly` flag, it was automatically encrypted, due to a logic flaw. This is now fixed and tested.
2017-12-05Dump environnement variables (#83)jvoisin
Apparently, PHP thinks that it's a great idea to type environnement variables, because why not.
2017-12-05Add two failing testsjvoisin
2017-12-04Fix the configuration parser wrt. non-matching bracketsjvoisin
This validation step is a bit idiotic, but we'll replace it with a proper parser anyway.
2017-12-01Add a test that used to segfaultjvoisin
2017-12-01Fail sooner when not able to create the folder to dumpjvoisin
2017-11-29Add new testsjvoisin
2017-11-29Add yet an other testjvoisin
2017-11-29Add even MOAR testsjvoisin
2017-11-29Add a test for `include`jvoisin
2017-11-29Implement eval hookingjvoisin
It's not possible to hook the `eval` builtin like other functions.
2017-11-24Implement anti csrf measuresxXx-caillou-xXx
This is done by using the "samesite" cookie attribute.
2017-11-06Add a failing testjvoisin
2017-11-0653 absolute path (#62)jvoisin
* Add error for relative path
2017-10-31Add a test to match on arrayjvoisin
2017-10-31Minor factorization of the keyword parsing codejvoisin
2017-10-31Unify two struct members related to virtual-patchingxXx-caillou-xXx
This should close #65
2017-10-30Minor code cleanupjvoisin
2017-10-30Bump coverage and simplify some codejvoisin
2017-10-27Bump the coveragejvoisin
2017-10-27Improve a bit the coverage wrt. broken configurationsjvoisin
2017-10-25.drop() is now bailoutjvoisin
Courtesy of @buixor
2017-10-25Make the testsuite a bit more robustjvoisin
2017-10-24Bump coverage ♥jvoisin
2017-10-24Remove the `enable` member from the disable function structurejvoisin
Also add some more tests
2017-10-23Add a test for unmatched bracketsjvoisin
2017-10-23Add some tests for upload validation and fix a related typojvoisin
2017-10-23Add a test for non-existent configuration filejvoisin
2017-10-23Implement the .line filterjvoisin
Close #48
2017-10-22Add a testcase, bumping the coveragejvoisin
2017-10-22Improve an error messagejvoisin
2017-10-20Add a test to demonstrate the behaviour wrt. call_user_funcjvoisin
2017-10-20Add support for multiple files in sp.configuration_file directiveblotus
This should close (#45
2017-10-18`.pos` is mutuaally exclusive with .param and .paran_rjvoisin
2017-10-18Fix the testsjvoisin
2017-10-18extra testsbui
2017-10-18Implement match on arguments positionjvoisin
2017-10-18.drop() is not a `nop` anymoreThibault "bui" Koechlin
`.drop()` is now baillout out, instead of nop'ing the call. This closes #13