Showing posts from October 2014

Sunday, 26 October 2014

Linkedin Clickjacking


Linkedin Clickjacking


Hello All , Hope you all are well , Today i will show you Linkedin Clickjacking vulnerability which i was found in almost 1 year before ,

Be frank side at the starting of my carrier in information security i liked Clickjacking Vulnerability very much , because its easy to find and exploiting for any attacker,

One day i was searching for some common bugs in linkedin and suddenly i found that one of their share page "https://www.linkedin.com/shareArticle?"  which used for Sharing Cross Domain Content you users profile is vulnerable to Click Jacking , at that time i was able to load that page in an iframe as you can see the POC

Saturday, 25 October 2014

Prevent XSS In PHP

 

Hello all today we will see that how we can Prevent XSS In PHP

I am posting this for newbies or fresher who are want to know about that , So here i am using a Simple PHP Code for better understanding

I am also a newby in PHP and will try my best to help you as much as i can

====================================================

<IMG STYLE=”position:absolute; TOP:100px; LEFT:500px; WIDTH:600px; HEIGHT:300px” SRC=”/wp-content/uploads/2014/06/21.jpg”>
<?php
if(isset($_GET[search]))
$display= $_GET[search];

echo “You searched for ” . $display ;

?>

<html>
<title>Testing Application of Websecgeeks</title>
<form name=”searchsomething” method=”GET” action=”xssfixing.php”>
<p>Search For Content</p><input type=”text” input name=”search”/><br><br>
<input type=”submit” input name=”submit” value=”Search Content”/>
</form>

====================================================

Here You can see we are taking an input from search field called “search” and storing the value of it into the “display” variable and using the same variable for displaying the entered text without filtration or sanitation

It is a simple sign of XSS vulnerability,

For Prevent this we can use htmlentities or htmlspecialcharactors function , Which will be nneedfulyou will know at the end

You can use

htmlentities($variablenamewhichisdisplayingtheuserinput) ,

Exa. – According to our code – htmlentities($display)

htmlspecialcharactors($variablenamewhichisdisplayingtheuserinput)

Exa. – According to our code  -htmlspecialcharactors($display)

=====================================================

Lets applied this same in our code

<IMG STYLE=”position:absolute; TOP:100px; LEFT:500px; WIDTH:600px; HEIGHT:300px” SRC=”/wp-content/uploads/2014/06/21.jpg”>
<?php
if(isset($_GET[search]))
$display= $_GET[search];

echo “You searched for ” . htmlentities($display) ;
?>
<html>
<title>Testing Application of Websecgeeks</title>
<form name=”searchsomething” method=”GET” action=”xssfixing.php”>
<p>Search For Content</p><input type=”text” input name=”search”/><br><br>
<input type=”submit” input name=”submit” value=”Search Content”/>
</form>

====================================================

Step By Step Video

As you can see that we have added htmlentities function right before the $display variable to prevent XSS Attack

use htmlspecialcharactors or htmlentities function for  filtration or sanitation , If your site is UTF8 encoded then you should htmlspecialcharactor function and use htmlentities is only  if your pages use encodings such as ASCII or LATIN-1 instead of UTF-8.

Comment below if you feel any problem or have queries

Note – Thanks for all your feedback on facebook , this post will update soon with other techniques also  , Thanks

Monday, 20 October 2014

Google XSS Vulnerability


Google XSS Vulnerability

Hello friends today i will show you how i Got Google XSS Vulnerability ,When i searching in google support section i think may be i should try to finding xss here ,Then i start trying ,First as usual i put my name in search box " bhati "


Google XSS Vulnerability

 Google XSS Vulnerability

And found that is reflecting back in the source code properly , So i decided to try my luck , i was hoping for the best for this xss

Monday, 20 October 2014

Exposed Session Variables-Exploitation

Exposed Session Variables-Exploitation


Hello all folks and dear friends this post is specially dedicated to learners and also if you dont know about this vulnerability or can say exploitation And if you already know about it , then you can Re-Read it again , Reading is this is absolutely free =D ;) sorry for the Bad joke

=============================================================================================
Today we will talk about the Exposed Session Variables-Exploitation and how we can exploit the same in real attack scenario !

Sunday, 5 October 2014

Heroku XSS

Heroku XSS
Hello all folks _/_  Bhai Jis , Bhaiya Jis, i was quite busy in my office work and etc , thats why i was unable to write some good stuffs

Well , Today we will talk about Heroku XSS ,

Lets come to the point , First i want to tell you that  , while testing Heroku i was thinking that i cant find something interesting , because many researchers have already discovered many things , So The Chance For A Valid Bug Is Quite Low =D

==========================================================================================