Search code examples
mysqlsqldatabaseoraclesql-injection

query Level in database


hey everyone I was reading some books about SQL injection and the author started throwing some terms I couldn't understand so can you help me understand them my questions: query level in the database what it means?

by the way the author talks about sqlmap specifically how it works and he mentions a file named payload.xml and in this file, there is a level of the query used by Sqlmap to reduce the number of the query in the SQL injection process u can take a look at this screenshot from the book https://i.sstatic.net/kAA6u.jpg


Solution

  • This is purely terminology for sqlmap.

    The sqlmap tool tests common vectors of SQL injection. The level of a test is intended to reflect the difficulty of detecting SQL injection from each vector.

    When you invoke the sqlmap tool to run a test, you can tell it to perform tests for additional vectors of input. This is just a way to allow you to enable more tests when you invoke the sqlmap tool.

    I skimmed the sqlmap documentation (https://github.com/sqlmapproject/sqlmap/wiki/Usage) and got the following summary:

    • Level 1: test all GET and POST parameters
    • Level 2: additionally test the Cookie http header
    • Level 3: additionally test the User-Agent and Referer http headers
    • Level 4:
    • Level 5: additionally test the Host http header