In the world of cyber security, SQL injection attacks have been a prevalent method used by hackers to gain unauthorized access to databases. Two common types of SQL injections are '11iixkqcm' or 253=(select 253 from pg_sleep(15))-- and
'Union-based SQL injections'.Both types of attacks target the vulnerabilities in a website's code, specifically in the input forms where users can enter data. These attacks work by inserting malicious SQL statements into the input forms, which are then passed on to the website's database.Although both types of SQL injections have similar goals, they use different methods to achieve them.The first type, '11iixkqcm' or 253=(select 253 from pg_sleep(15))--, is also known as 'blind SQLi' or 'boolean-based blind SQL injection'. This type of attack relies on conditional queries that will return a true or false response, depending on whether the injected statement is valid or not. In the above example, the attacker is trying to force the database to sleep for 15 seconds, which would indicate a successful injection.On the other hand, 'Union-based SQL injections' work by exploiting vulnerabilities in the application’s database query functions. They involve using a 'union' statement to join two or more tables from the database, effectively combining their data. This type of attack can be more damaging as it allows the attacker to extract sensitive information from the database, such as usernames, passwords, and credit card numbers.In terms of effectiveness, both types of attacks can be successful if the website’s code is vulnerable. The difference lies in the methods used to carry out the attacks. While '11iixkqcm' or 253=(select 253 from pg_sleep(15))-- is more subtle and can remain undetected for longer periods, 'Union-based SQL injections' have a higher success rate in extracting sensitive data.To protect against these types of attacks, website developers must ensure they have proper input validation in place. This involves sanitizing user input and using prepared statements to prevent any malicious SQL statements from being executed.In conclusion, both '11iixkqcm' or 253=(select 253 from pg_sleep(15))-- and 'Union-based SQL injections' are dangerous methods used by hackers to gain unauthorized access to databases. While both attacks have similar goals, their methods differ in terms of how they exploit vulnerabilities in a website's code. It is important for website developers to take necessary precautions to prevent these attacks and ensure the security of their websites and databases.
Remember, an ounce of prevention is worth a pound of cure.