SQL And XML Injections Flashcards

(8 cards)

1
Q

Objective of SQL and XML attack is similar and aims to achieve what?

A

Sending some kind of code into a system to enable attackers to perform malicious actions

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Insertion of additional information or code through a data input from a client to an application

A

Code injection

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Injection of an SQL query through an input form that a client uses to send data over to a web application

A

SQL injection attack

-attacker tries to insert parameters or code in the SQL statement used to query a database

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

SQL Injection Attack Mitigation

A

-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

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

XML data submitted without encryption or input validation is susceptible to the following:

A

-Snooping
-Spoofing
-Request Forgery
-Injection of arbitrary code

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

XML Exploits

A

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

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

XML External Entity

A

An attack that embeds a request for a local resource
- doc is usually included

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

How to differentiate between XML and HTML tags

A

HTML and JavaScript use predefined tags like Font, Image, HREF

XML uses things like question ID, type, element, entity

How well did you know this?
1
Not at all
2
3
4
5
Perfectly