Home
Calendar
Certifications
Columns
Features
Forum
Resources
Vitals
Latest Additions
April 2013 Free Giveaway Sponsor - eLearnSecurity
Human Intelligence to Navigate the Security Data Deluge
February 2013 Free Giveaway Winner of SANS CyberCon Training
Interview: Bugcrowd Founders on Herding Ninjas for Crowdsourced Bug Bounties
Network Forensics: The Tree in the Forest
March 2013 Free Giveaway Sponsor - Mile2
Book Review: Violent Python
February 2013 Free Giveaway Sponsor - SANS
Holiday 2012 Free Giveaway Winner of Metasploit Pro by Rapid7
Course Review: SANS FOR408 Computer Forensic Investigations – Windows In-Depth
The Security Consulting Sugar High
Tutorial: Fun with SMB on the Command Line
Interview: Ilia Kolochenko, CEO of High-Tech Bridge
October 2012 Free Giveaway Winner of LearningGate Training
The Broken: Assessing Corporate Security in 2012 to Make a Better 2013
EH-Net Login
Welcome Guest.
Username:
Password:
Remember me
Lost Password?
No account yet?
Register
Who's Online
We have 41 guests and 1 member online
You are here:
Home
Ethical Hacking Discussions and Related Certifications
Network Pen Testing
Dont' Steal My Wifi
EH-Net
May 19, 2013, 04:56:51 AM
Welcome,
Guest
. Please
login
or
register
.
Did you miss your
activation email?
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
News
: Go back to The Ethical Hacker Network Online Magazine
Home Page
Home
Help
Calendar
Login
Register
EH-Net
>
Ethical Hacking Discussions and Related Certifications
>
Network Pen Testing
(Moderator:
don
) >
Dont' Steal My Wifi
Pages:
1
[
2
]
Go Down
« previous
next »
Print
Author
Topic: Dont' Steal My Wifi (Read 23436 times)
0 Members and 1 Guest are viewing this topic.
t0lomp
Newbie
Offline
Posts: 7
what I did
«
Reply #15 on:
April 05, 2007, 12:33:19 PM »
Quote from: heffnercj on April 05, 2007, 09:13:36 AM
t0lomp, now that you've got me interested in how this thing works any input on the above would be appreciated. I'm going to have to see if I can get either of these programs running on my computer when I get home tonight.
1.
Yeah, I agree. The dontstealmywifi is mitm. I guess your attacker has a 50% chance of tapping into the new AP. Maybe put the new AP closer to the outside of the premises.
2.
I watched one of the videos, but it uses Auditor which I don't have, so I did this instead:
Backtrack 2 Live->Ran Kismet. Channel locked to my AP's channel (no encryption on the AP).
On another laptop I logged into yahoo mail, went to the inbox and checked my mail.
Went back to the Kismet machine, copied the .dump file to USB
Rebooted the Kismet machine to Windows, ran dontstealmysecrets
In the program, converted the .dump file to .pcap
Opened the .pcap file
My email account appeared. I double clicked on it and it opened my account. Everything is there and I can send a new message. I then right clicked and went "explore" and all my previously received email messages had been downloaded and were stored as .html. I did a search from within the program for my kids' names and other personal information and it all came up.
I then changed my IP address (not the NAT address, the IP address provided to the router) and double clicked on the email account again without reloading, and it still went into my account.
I then did the whole process from the beginning, this time logging out of yahoo before loading a newly converted .pcap file, and it still worked.
I then did it on one machine, capturing wired traffic with wireshark only. Opened the wireshark .pcap file without converting it and the email account appeared, and did the same thing as above.
I then took the .pcap file and loaded it while connected to another ISP, and there it did not work.
3.
I showed this to my boss he said he'd have to "think about it." He should know what is going on here. We have clients that have these kinds of accounts.
4.
If I am getting this right, this means that someone can capture wireless at any open access location (say a convention center) and gain complete control over numerous email accounts, just by capturing packets. Their only restriction is that they have to connect to the same AP (or provider) to gain access. This is not something that I have ever seen before.
Logged
Craig
EH-Net Columnist
Jr. Member
Offline
Posts: 69
Re: Dont' Steal My Wifi
«
Reply #16 on:
April 05, 2007, 01:12:41 PM »
Some things I would be interested in checking:
1) Does this work on other SSL-enabled logins? Does it work with sites that use some other type of encyrption to protect usernames/passwords?
2) Can you still access your yahoo account through dontstealmywifi several hours or days after the packets have been captured?
3) Run Wireshark while using dontstealmywifi - what kind of requests does it send, what pages does it access, etc?
Again, I'm going to see if I can get this working when I get home and do some investigation into it myself.
«
Last Edit: April 05, 2007, 01:32:13 PM by heffnercj
»
Logged
http://www.sourcesec.com
d1spat3r
Newbie
Offline
Posts: 28
Re: Can & Able not appropriate
«
Reply #17 on:
April 05, 2007, 03:08:35 PM »
Quote from: t0lomp on April 05, 2007, 05:33:56 AM
d1spat3r - thanks for bringing this program to my attention.
Hell i'm just happy I created a thread that is actually getting some interest. Normally I'm the one in the background just reading. Feels good to give back to the group.
Logged
CISSP, GSEC, GCFA
don
Editor-In-Chief
Administrator
Hero Member
Offline
Posts: 4165
Editor-In-Chief
Re: Dont' Steal My Wifi
«
Reply #18 on:
April 05, 2007, 03:59:55 PM »
Here here!!
Don
Logged
CISSP, MCSE, CSTA, Security+ SME
Craig
EH-Net Columnist
Jr. Member
Offline
Posts: 69
Re: Dont' Steal My Wifi
«
Reply #19 on:
April 05, 2007, 07:57:59 PM »
OK, I've got dontstealmywifi installed and ran it while logging into my yahoo and gmail accounts. Here's what I've got so far:
1) It doesn't recognize my gmail account at all. It logs my access to gmail pages, but doesn't give me any account information.
2) It isn't obtaining any password information. When double-clicking on my yahoo account that it lists, it immediately sends a GET request to /ym/ShowFolder and requests to view my Inbox; it appears to be using the same cookie that I was issued when I first logged in (I didn't look too close though, I'll have to verify this later).
3) When it IDs an account (such as my yahoo account), it starts downloading all messages. Because of this, I'm now locked out of my yahoo account temporarily, so I will have to wait a while to continue testing this.
4) After I logged out of yahoo, it still said it was downloading messages. I'm not sure if it was or not, because it doesn't give any real details, but I have a couple theories on this: yahoo mail is receiving so many requests with the current session cookie (because the program is downloading all of my mail) that it ignores/overlooks the logout and the session remains valid OR yahoo mail simply does not properly destroy session data server-side, so anyone using the session cookie can still gain access to the account after you logout. I'm leaning towards the former.
Once I can log into my Yahoo account again, I'm going to run some more tests...I'll post up anything interesting.
Logged
http://www.sourcesec.com
Kev
Guest
Re: Dont' Steal My Wifi
«
Reply #20 on:
April 05, 2007, 09:47:55 PM »
If you know how to encrypt your internet access including emails, no one will see them. I promise that! That’s why home land security tried to out law any encrypted traffic.
Logged
Craig
EH-Net Columnist
Jr. Member
Offline
Posts: 69
Re: Dont' Steal My Wifi
«
Reply #21 on:
April 05, 2007, 11:51:49 PM »
Agreed Kev, anything in plain text is fair game for anyone who happens to be listening in! SSH tunnels all the way!
As far as the program in question is concerned, it's a nice simplified interface for capturing email sessions for certain online accounts (like I said, it didn't seem to recognize gmail, so I don't know what sites/account types are supported) and for spidering a user's Inbox (as stated above though, this will lock out their account, so it's not perfect), but it doesn't seem to do anything that couldn't be done with a shell/perl script.
Basically it just captures the session cookie and uses that to hijack a user's session. The reason you can still log in after the user logs out of the account is that the session cookie is only deleted from the client's browser...it is not deleted from the server however. I verified this by logging in, copying the cookie data, logging out, then requesting the Inbox page using wget which I supplied with the cookie header. Yahoo happily spit back my Inbox.
So, while this app doesn't do anything ground breaking, it seems that Yahoo doesn't destroy session data on the server when you log out of your account, which is quite interesting.
There also seems to be a couple of URLs that can be used to redirect users arbitrary sites/pages...could be useful for XSS/CSRF attacks.
Logged
http://www.sourcesec.com
t0lomp
Newbie
Offline
Posts: 7
dontstealmysecrets
«
Reply #22 on:
April 06, 2007, 01:57:37 AM »
Quote from: d1spat3r on April 05, 2007, 03:08:35 PM
Hell i'm just happy I created a thread that is actually getting some interest. Normally I'm the one in the background just reading. Feels good to give back to the group.
d1spat3r - You've found a program that enables a regular Windows user to take control of any hotmail or yahoo account (and maybe others) essentially without any expertise, programming or otherwise, and with only the wireless traffic. That's something.
heffnerc - I can repeat what you've done without clearing the current cookie cache. However if I clear the cookie cache before performing the wget, I cannot get into the account. Also, as far as I can tell, the program is (obviously) to be run on a separate machine, away from the person who is doing the logging in, not on the same machine (i.e. your "lockout" issue). I don't think that there are any perl scripts that do what this program is doing, but I could be wrong. That's why I asked the guy earlier for a list of programs that do what this is doing.
I would like to know what other providers this dontstealmysecrets works with.
Logged
Craig
EH-Net Columnist
Jr. Member
Offline
Posts: 69
Re: Dont' Steal My Wifi
«
Reply #23 on:
April 06, 2007, 07:10:07 AM »
Quote
You've found a program that enables a regular Windows user to take control of any hotmail or yahoo account (and maybe others) essentially without any expertise
That certainly is something...I don't know if it's a good something, but it's something!
I'm not aware of any other programs designed specifically to do this either t0lomp, I was just saying that this program doesn't do anything magical that couldn't be done with tpdump/grep/wget. Not saying it isn't useful as you pointed out, but again, this program doesn't do anything you couldn't do with most default Linux installations - it just makes it much, much easier.
Also, I'm still able to access my account using the cookie issued from yesterday. I've logged out, cleared my cache, and rebooted, still works. Interestingly, I mentioned this issue to one of my friends who does security work and he said he'd heard about it before from somewhere, so Yahoo's failure to properly destroy sessions isn't entirely new apparently.
Good find d1spat3r, thanks for your help in figuring out how this works t0lomp, and if I ever decide to use Windows again I just might find myself using this.
Logged
http://www.sourcesec.com
t0lomp
Newbie
Offline
Posts: 7
Re: Dont' Steal My Wifi
«
Reply #24 on:
April 06, 2007, 03:14:15 PM »
Quote from: heffnercj on April 06, 2007, 07:10:07 AM
I'm not aware of any other programs designed specifically to do this either t0lomp...Good find d1spat3r, thanks for your help in figuring out how this works t0lomp...
From what I can tell, SSL authentication under these various webmail accounts are now of no value. The whole purpose of having SSL authentication is to protect the account. If someone can simply listen in on wireless and play it back, and gain full access to the account, what is the purpose of the SSL session? You may as well present the password or password hash as cleartext.
No problem in helping figure it out. I found it interesting too. Maybe I don't linux or coding as well as you do, but I would find it difficult to come up with something to do this, especially since I don't know the scope (i.e. how many types of accounts this thing actually handles), or even how it works. If you posted such a script or a procedure it would definitely help me (and maybe some others) understand Linux better and how this program works. I guess you'd want to include earthlink, yahoo classic, yahoo beta, hotmail live lite, hotmail classic, aol, bellsouth, comcast, various regular mail protocols, and netzero. It probably works for others too, but today is Good Friday, and I do have to spend some time with my kids.
Have a good holiday.
Logged
Craig
EH-Net Columnist
Jr. Member
Offline
Posts: 69
Re: Dont' Steal My Wifi
«
Reply #25 on:
April 06, 2007, 06:23:23 PM »
Hey t0lomp,
Well, if you don't mind doing some copy/pasting by hand, the easiest way to do this would be to use ethereal to capture session cookies and then request pages by hand using wget. But that's kind of a pain.
If you wanted to automate it, here's how it might work on Linux:
1) Fake WAP
Linux allows you to place your wireless card in master mode (i.e., turn it into an AP), and enabling IP forwarding will allow it to forward requests between the wireless interface and the ethernet card (which should be able to access the Internet obviously):
iwconfig eth0 mode master essid "My Fake AP"
ifconfig eth0 192.168.1.1
echo 1 > /proc/sys/net/ipv4/ip_forward
A better way IMHO would be to spoof DHCP replies and tell client machines that your computer is their gateway/DNS server. It's harder to track, and you can write some fun NAT rules to redirect connections to your own servers.
2) Downloading all emails
You can use tcpdump/tethereal to capture data and grep for people accessing their Yahoo/Hotmail/whatever email accounts, then extract their cookies from the data (regular expressions would be useful here) and pass those cookies to wget which can recursively download pages on their Inbox page.
Examples of some Perl scripts I've written in the past to perform similar data capture/extraction using tethereal can be found here (
http://packetstormsecurity.org/wireless/wlan_webauth.txt
) and here (
http://www.craigheffner.com/security/aim-jack.zip);
there are probably better examples out there though
. A quick and dirty tutorial on using wget to perform recursive downloads can be found here (
http://linuxreviews.org/quicktips/wget/
).
3) Providing access to the account
I've actually written a Perl HTTP proxy (
http://www.craigheffner.com/security/httprox.txt
) that allows you to specify a random header, which is perfect for this. Put the cookie header into a file, connect to the email account via the proxy, and you're in like a dirty shirt.
It's nothing fancy and some of the code was swiped from other Perl scripts floating around the Internet - it just forwards requests through wget, then sends the response back to the browser.
Quote
From what I can tell, SSL authentication under these various webmail accounts are now of no value. The whole purpose of having SSL authentication is to protect the account. If someone can simply listen in on wireless and play it back, and gain full access to the account, what is the purpose of the SSL session? You may as well present the password or password hash as cleartext.
Well, that's kind of like saying you might as well leave the keys in the ignition because someone could steal your car by hotwiring it. There's nothing wrong with SSL, and in fact if the webmail sites used SSL throughout the entire session, this wouldn't be an issue. Honestly I can't believe that Yahoo doesn't properly destroy server-side session data, that seems like a no-brainer to me. But regardless, remember there still are restrictions to session hijacking even in a case such as this because most sessions will be tied to a specific IP or IP range. If you capture a Yahoo mail cookie at a WiFi hotspot, you can't go home and use it like you could if you had the actual user name and password.
Logged
http://www.sourcesec.com
t0lomp
Newbie
Offline
Posts: 7
Re: Dont' Steal My Wifi
«
Reply #26 on:
April 06, 2007, 07:32:56 PM »
Quote from: heffnercj on April 06, 2007, 06:23:23 PM
Hey t0lomp,
Well, if you don't mind doing some copy/pasting by hand, the easiest way to do this would be to use ethereal to capture session cookies and then request pages by hand using wget. But that's kind of a pain.
If you wanted to automate it, here's how it might work on Linux...
OK, thanks! I was kind of looking for something ready-made, rather than something for which I'd have to write a lot of code, but I'll look it over. Writing code to parse the content of multiple received pages using regular expressions doesn't really sound like a fun afternoon (or month), but it would probably be interesting to see what you've done there.
I was just reading some other comments (elsewhere) about this dontstealmysecrets program. The consensus seems to be that it handles a lot of protocols, and there appears to be interest/consternation about that, and also possibly because it runs straight out-of-the-box on Windows. Some people do appear to be highly agitated about it though.
Running an application over the web without installing it - what will they think of next.
I guess what SSL under these systems does is it precludes someone from going home and accessing the account. I guess that's better than nothing.
Good night!
Logged
sorris
Newbie
Offline
Posts: 1
FON
«
Reply #27 on:
April 08, 2007, 08:59:25 AM »
"Unlike T-mobile, or other more established services, FON (
http://www.fon.com
) opens up its users to identify theft, and in a particuarly nasty way. For example, dontstealmywifi and dontstealmysecrets (
http://www.dontsteal.net
) allow a Windows user to download every mail message of any FON user, and lets anyone send and receive new email from their account, even if authentication occurs over SSL. This can be done by the person who owns the FON router, or anyone else. How long will it be before someone posts such messages and attribues them to the FON insecurity? How many users would be comfortable with it then? Which ISP employee (anonymously, of course) will be delegated this task?"
http://wiki.fonboard.nl/index.php/FON_router_security
Logged
Pages:
1
[
2
]
Go Up
Print
« previous
next »
Jump to:
Please select a destination:
-----------------------------
EH-Net
-----------------------------
=> Calendar Of Events
===> ChicagoCon 2007
===> ChicagoCon 2008s
===> ChicagoCon 2008f
===> ChicagoCon 2009s
=> Ethical Hacktivism
=> News Items and General Discussion About EH-Net
===> Greetings
=> Special Events
-----------------------------
Ethical Hacking Discussions and Related Certifications
-----------------------------
=> General Certification
===> Networking
===> OS
===> Security
=> Compliance, Regulations & Standards
=> Control Systems
=> Cyber Warfare
=> Forensics
===> CCE / MCCE - (Master) Certified Computer Examiner
===> CHFI - Computer Hacking Forensic Investigator
===> EnCE - EnCase® Certified Examiner
===> GCFA - GIAC Certified Forensics Analyst
=> Hardware
=> Incident Response
===> CSIH - Computer Security Incident Handler
===> GCIH - GIAC Certified Incident Handler
=> Malware
===> Advisories
=> Mobile
=> Network Pen Testing
===> CEH - Certified Ethical Hacker
===> CPTC - Certified Penetration Testing Consultant
===> CPTE - Certified Penetration Testing Engineer
===> CSTA - Certified Security Testing Associate
===> eCPPT - eLearnSecurity Certified Professional Penetration Tester
===> ECSA - EC-Council Certified Security Analyst
===> GPEN - GIAC Certified Penetration Tester
===> OSCP - Offensive Security Certified Professional
=> Physical Security
=> Programming
=> Social Engineering
=> Web Applications
=> Wireless
===> CWNP Certs
===> GAWN - GIAC Assessing Wireless Networks
===> OSWP - Offensive Security Wireless Professional
=> Other
-----------------------------
Columns
-----------------------------
=> Editor-In-Chief
=> Andress
=> Gates
=> Haddix
=> Hadnagy
=> Heffner
=> Hoffman
=> Linn
=> RichM
=> Murray
=> J. Peltier
=> Weidman
=> Wilson
-----------------------------
Features
-----------------------------
=> /root
=> Book Reviews
=> Opinions
=> Skillz
===> Examples
===> May 06 - Star Hacks, Episode V: The Empire Hacks Back
===> July 06 - Hack Bill!
===> Sept 06 - Netcat in the Hat
===> Nov 06 - Hitch-Hackers Guide to the Galaxy
===> Dec 06 - A Christmas (Hacking) Story
===> Feb 07 - Charlottes Web Site
===> April 07 - Microsoft Office Space
===> June 07 - Serenity Hack
===> Oct 07 - Worst. Ethical. Hacker. Challenge. Ever.
===> Dec 07 - Frosty the Snow Crash
===> March 2008 - It Happened One Friday
===> Oct 2008 - Scooby Doo and the Crypto Caper
===> Dec 08 - Santa Claus Is Hacking to Town
===> Feb 2009 - Brady Bunch Boondoggle
===> July 2009 - Prison Break
===> October 2009 - SSHliders
===> December 2009 - Miracle on Thirty-Hack Street
===> December 2010 - The Nightmare Before Charlie Browns Christmas
-----------------------------
Resources
-----------------------------
=> Career Central
===> Looking For Work
===> Looking To Hire
=> Links to cool sites.
=> Mass Media
=> News from the Outside World
=> Tools
=> Tutorials
===> Tutorial Requests
Loading...
Exclusive Deal
SANSFIRE 2013
June 15 - 22
5% Off
w/ Code
:
EHN_5
SANS Deals 4 EH-Netters
5% OFF
Any
SANS Course
in Any Format!
Coupon Code:
EHN_5
Including
SANS Rocky Mountain 2013
&
SANS Boston 2013
Polls
Compared to this year, 2013 will be:
Great!
Better.
About the same.
Little worse.
FUBAR!
Recent Forum Topics
General Certification
: CPT Practical Submission
(0) by
z28power4u
OSCP - Offensive Security Certified Professional
: Class Scheduled 6/8 - Linux n00b
(5) by
MrTuxracer
Career Central
: Starter cert?
(0) by
Alert
Web Applications
: Nessus and Nikto
(4) by
Seen
Tutorials
: Need guidance
(7) by
impelse
Malware
: EICAR?
(2) by
SephStorm
Network Pen Testing
: Cracking salted MD5 hash
(4) by
n37sh@rk
CEH - Certified Ethical Hacker
: Passed my C|EH
(3) by
n37sh@rk
Mass Media
: EC-council hacked, irony at his best?
(0) by
j0rDy
Web Applications
: SQL Injection into an INSERT statement.
(6) by
eyenit0
Network Pen Testing
: Solution for sipXtapi INVITE Message CSeq Field Header Remote Overflow
(1) by
m0wgli
Web Applications
: dns
(2) by
H1t M0nk3y
Other
: BSides Boston
(0) by
3xban
Career Central
: InfoSec in Central, FL
(2) by
tturner
Web Applications
: Web vulnerability scanner
(4) by
H1t M0nk3y
EH-Net News Feeds
Latest Additions
Privacy Notice
for TDCC & All Properties
Free Business and Tech Magazines and eBooks
© 2013 The Ethical Hacker Network
Joomla!
is Free Software released under the GNU/GPL License.