CCT APP Written - Deck B Flashcards
When does an SQL injection occur
When a user-input is used in an SQL query without proper sanitisation or filtering of the input
What are the types of SQL Injections
In-band. Blind Out-of-band
What are characters to use for testing of SQLi Discovery
” # ; )
What are the 3 types of queries for MySQL fingerprint testing
SELECT @@version. SELECT POW(1.1). SELECT SLEEP(5)
What is the expected output of SELECT @@version if MySQL
It will output the current MySQL version
What is the expected output of SELECT @@version if NOT MySQL
In MSSQL it returns MSSQL version. Error with other DBMS
What is the expected output of SELECT POW(1.1) if MySQL
1
What is the expected output of SELECT POW(1.1) if NOT MySQL
Error with other DBMS
What is the expected output of SELECT SLEEP(5) if MySQL
Delays page response by 5 seconds and returns 0
What is the expected output of SELECT SLEEP(5) if NOT MySQL
Will not delay response with other DBMS
If the web server is running Apache or Nginx what is likely the SQL server
MySQL
If the web server is running IIS what is likely the SQL server
MSSQL
What are the three types of XSS
Stored. Reflected and DOM-Based
What is a Stored XSS
The most critical type of XSS which occurs when user input is stored on the back-end database and displayed upon retrieval
What is a Reflected XSS
When a user input is displayed on the page after being processed by the backend server but without being stored
What is a DOM based XSS
When a user input is directly shown in the browser and is completely processed on the client side without reaching the backend
When can XSS be performed in Headers
When their values are displayed on the page
What 3 ports does MSSQL run on
TCP 1433 and UDP 1434. Hidden mode: TCP 2433