Skip to content

Commit a1d79f2

Browse files
committed
Additional sqlHexDecode transformation tests
- These were added to test changes in owasp-modsecurity/ModSecurity#3231
1 parent a3d4405 commit a1d79f2

File tree

1 file changed

+35
-0
lines changed

1 file changed

+35
-0
lines changed

transformations/sqlHexDecode.json

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,40 @@
55
"type" : "tfn",
66
"name" : "sqlHexDecode",
77
"output" : "ABC"
8+
},
9+
{
10+
"ret" : 1,
11+
"input" : "ABC",
12+
"type" : "tfn",
13+
"name" : "sqlHexDecode",
14+
"output" : "ABC"
15+
},
16+
{
17+
"ret" : 1,
18+
"input" : "00x414243",
19+
"type" : "tfn",
20+
"name" : "sqlHexDecode",
21+
"output" : "0ABC"
22+
},
23+
{
24+
"ret" : 1,
25+
"input" : "0xz0x414243",
26+
"type" : "tfn",
27+
"name" : "sqlHexDecode",
28+
"output" : "0xzABC"
29+
},
30+
{
31+
"ret" : 1,
32+
"input" : "0x4142430x434241",
33+
"type" : "tfn",
34+
"name" : "sqlHexDecode",
35+
"output" : "ABCCBA"
36+
},
37+
{
38+
"ret" : 1,
39+
"input" : "0x4142430x0x434241",
40+
"type" : "tfn",
41+
"name" : "sqlHexDecode",
42+
"output" : "ABC0xCBA"
843
}
944
]

0 commit comments

Comments
 (0)