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

Skip to content

Commit 2fb5996

Browse files
committed
Bug fix
1 parent b472d98 commit 2fb5996

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

plugins/generic/search.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ def searchTable(self):
189189
logger.info(infoMsg)
190190

191191
tblQuery = "%s%s" % (tblCond, tblCondParam)
192-
tblQuery = tblQuery % tbl
192+
tblQuery = tblQuery % unsafeSQLIdentificatorNaming(tbl)
193193

194194
if any(isTechniqueAvailable(_) for _ in (PAYLOAD.TECHNIQUE.UNION, PAYLOAD.TECHNIQUE.ERROR, PAYLOAD.TECHNIQUE.QUERY)) or conf.direct:
195195
query = rootQuery.inband.query
@@ -505,7 +505,7 @@ def searchColumn(self):
505505

506506
for column, dbData in foundCols.items():
507507
colQuery = "%s%s" % (colCond, colCondParam)
508-
colQuery = colQuery % column
508+
colQuery = colQuery % unsafeSQLIdentificatorNaming(column)
509509

510510
for db in dbData:
511511
db = safeSQLIdentificatorNaming(db)

0 commit comments

Comments
 (0)