Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion plugins/dbms/mysql/fingerprint.py
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,8 @@ def checkDbms(self):
infoMsg = "confirming %s" % DBMS.MYSQL
logger.info(infoMsg)

result = inject.checkBooleanExpression("SESSION_USER() LIKE USER()")
# user@% LIKE user@host OR user@host LIKE user@%
result = inject.checkBooleanExpression("SESSION_USER() LIKE USER() OR USER() LIKE SESSION_USER()")

if not result:
# Note: MemSQL doesn't support SESSION_USER()
Expand Down