SQL And XML Injections Flashcards
(8 cards)
Objective of SQL and XML attack is similar and aims to achieve what?
Sending some kind of code into a system to enable attackers to perform malicious actions
Insertion of additional information or code through a data input from a client to an application
Code injection
Injection of an SQL query through an input form that a client uses to send data over to a web application
SQL injection attack
-attacker tries to insert parameters or code in the SQL statement used to query a database
SQL Injection Attack Mitigation
-Input validation
-Sanitize data received from users
-Filter out apostrophes
-use a Web Application Firewall between client and database (will perform validation/sanitization for you
XML data submitted without encryption or input validation is susceptible to the following:
-Snooping
-Spoofing
-Request Forgery
-Injection of arbitrary code
XML Exploits
XML Bomb (Billion Laughs Attack)
-Acts as a DoS attack
-XML encodes entities that expand to exponential sizes, consuming memory in the host and potentially crashing it
XML External Entity
An attack that embeds a request for a local resource
- doc is usually included
How to differentiate between XML and HTML tags
HTML and JavaScript use predefined tags like Font, Image, HREF
XML uses things like question ID, type, element, entity