Bugs of Website
1. Install Xampp Server
2. Install DVWA(testing for security)
Damn Vulnerable Web
App (DVWA) is a PHP/MySQL web application that is damn vulnerable.
Its main goals are to be an aid for security professionals to test
their skills and tools in a legal environment, help web developers
better understand the processes of securing web applications and aid
teachers/students to teach/learn web application security in a class
room environment.
3.Extract in the
location of htdocs
4.Go to
/opt/lampp/htdocs/DVWA-master/config/config.inc.php.dist and change
the password to Empty i.e ‘’ and also change the file name to
config.inc.php
5. Go to localhost
http://localhost/DVWA-master/
6. Go Down and Click create/reset Database and then you will redirect
to login page like this.,
7. User name : “admin”
Password :
“password” ,You will get something like this.,
Unvalidated redirect or forward
When you login or do
some activity ,it redirect to some another page ,
If it correctely
verifies you ,then it will redirect you to this page
Actual Page :
https://127.0.0.1/open.php?redirect=data.php
But hackers access
this source and change the code as this below code., Its a BUG!!
Reason : Because it
display in URL Page:
hacker change in to
: https://127.0.0.1/open.php?redirect=https://www.google.com
Twitter affected
by this Problem, after they resolved it!!
Click Jacking :
Button action is One
, but button label is different
Example : Label :
“Click button for free Laptop” but Action : that redirect into
different link and try to hijack your phones (By using Iframe tag it
can be done!!)
Zomato
affected by this Problem,after they resolved it!!
Tabnapping
Security attack:
when we click link
on one page (open on newtab), after clicking ,the orginal page will
changed to another malicious website or page. It is one of the
Phishing Attack.
We Commonly use
target=’_blank’ for open on newtab ,By using this,hackers can
easily hijack your site. So Avoid using this on website.
Cross-Site
Scripting (XSS) :
Insert malicious
code into victim’s website through this security attack.
Example: when you
enter some Script into the form data ,if your website accepts that ,
website control tranfers to hackers!!
Testing Example:
click view page source
If I Enter some script like this.,
Now,the script is updated onto your source code..See that..So be Safe
File Inclusion Vulnerability:
Local File
Inclusion (LFI)
Inclusion of harmfull file to your website,that changes the content
in your website and hackers can able to see your contents.
Remote File
Inclusion:
1. To work with on
RFI, goto /opt/lampp/etc/php.ini and change allow_url_include=On
2. Change the
permission viiay@viiay-TECRA-R940:/opt/lampp/etc$ sudo chmod 777
php.ini
3. Restart the Xampp
server
By doing so ,the
error clear when working
Inclusion of remote
file in the URL like
http://localhost/DVWA-master/vulnerabilities/fi/?page=https://www.yahoo.com
Recommended:
Read tutorials via
OWASP .,Its good :}
Thank You Friends!!








Comments
Post a Comment