webapplicationattacks-101005070110-phpapp02
webapplicationattacks-101005070110-phpapp02
ATTACKS
What is a Web Application?
Any application that is served commonly via http or https protocol
Web Developers are not well versed with security issues because
of which the applications are prone to vulnerabilities.
Persistent
DOM Based
What is SQL Injection?
The ability to inject SQL commands in to database engine through
an existing application
http://example.com/db.php?id=0
http://example.com/db.php?id=0;DELETE%20FROM%20users
<?php
$id= $_GET[ 'id' ] ;
//$id = 0;DELETE FROM users
bl e data
t a
User stroy
de
SQL Injection attacking example 2
<?php
$query = "SELECT * FROM users WHERE
users= ' {$_POST['username']} ' AND
password= ' {$_POST['password']} ' ";
ject
SQL In
mysql_query($query); Code
//$_POST['username'] = 'bob';
//$_POST['password'] = " ' OR '1'='1 ";
echo $query;
?>
output:
SELECT * FROM users
WHERE user='bob' AND password=' ' OR '1'='1'
Parameter Tampering
Parameter tampering is a sophisticated form of hacking that
creates a change in the Uniform Resource Locator, or URL,
associated with a web page.
Session Hijacking
Session Replay
Session Fixation
Session Tempering
Cookie Poisoning
Many Web applications use cookies to save information
(user IDs, passwords, account numbers, time stamps,
etc.)
request.
The attacker can make the victim perform actions that they didn't intend to,
such as logout, purchase item, change account information, retrieve account
information, or any other function provided by the vulnerable website.
Affected Environments
All web application frameworks are vulnerable to CSRF.
CSRF Continued Logging Request
Auth Cookies
at e
Legitim
t
Reques Bob
Bank.com
View My
Money Pictuires
Transfer
<a href="http://bank.com/transfer.do?
acct=MARIA&amount=100000">View my Pictures!</a>
Buffer Overflows
Buffer is storage space for data. Buffer overflow occurs
when the user input exceeds the maximum size of the
buffer, overwriting the other areas of the memory and
corrupting those areas.