Skip to content

Commit ec2adbc

Browse files
committed
add tests to test.php and example_base_ruleset.xml
1 parent a34af00 commit ec2adbc

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

example_base_ruleset.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@
4747
<!-- Misc -->
4848
<rule ref="Security.Misc.BadCorsHeader"/>
4949
<rule ref="Security.Misc.IncludeMismatch"/>
50+
<rule ref="Security.Misc.TypeJuggle"/>
5051

5152
</ruleset>
5253

tests.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
preg_replace($_GET['b'], $_GET['a'], $_GET['c']);
1212
preg_replace($b, $_GET['a'], 'aaaaaa');
1313
preg_replace("aaa", $_GET['a'], 'ababaaa');
14-
14+
1515

1616
// BadFunctions
1717
md5();
@@ -44,6 +44,7 @@
4444
$a->withHeader('Access-Control-Allow-Origin', '*');
4545
include('abc.xyz');
4646
require_once EXTENSION_PATH . '/path/to' . $name . '.jkl';
47+
0 == '0 cats';
4748

4849
// Easy user input
4950
$_GET['a'] = 'xss';

0 commit comments

Comments
 (0)