Image
 
linkedin_logo.png rss_logo.jpg
twitter_logo.png youtube_logo.jpg
Latest Additions
 
EH-Net Login
Welcome Guest.






Lost Password?
No account yet? Register
Who's Online
We have 40 guests and 3 members online
 
Free Business and Tech Magazines and eBooks

You are here: Home arrow Ethical Hacking Discussions and Related Certificationsarrow Network Pen Testingarrow Hiding app traffic through active HTTP sessions
EH-Net
May 19, 2013, 03:54:02 PM *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: Go back to The Ethical Hacker Network Online Magazine Home Page
 
   Home   Help Calendar Login Register  
Pages: [1]   Go Down
  Print  
Author Topic: Hiding app traffic through active HTTP sessions  (Read 3500 times)
0 Members and 1 Guest are viewing this topic.
3xban
Hero Member
*****
Offline Offline

Posts: 605


View Profile WWW
« on: September 23, 2011, 12:54:50 PM »

So we are trying to test some of our defenses and one of our IR guys asked if I can try to hijack an active HTTP session on my system and try to send other traffic through that session.  We use authenticating proxies with no single sign-on so all web traffic requires authentication.  We are trying to see if an app can hide/cloak/piggyback on an active authenticated session.  Any ideas?  Can something be done using netcat?  My skills are a bit weak in this area and I am exciting to learn something new.  It sounded like a fun challenge.

Thanks in advanced.
Logged

Certs: GCWN
(@)Dewser
idr0p
Newbie
*
Offline Offline

Posts: 49


View Profile
« Reply #1 on: September 23, 2011, 02:00:45 PM »

Have you looked at Paros or Burp Suite?
Logged

GCIA GCIH GPEN GWAPT
Up Next: CISA CISSP
mambru
Jr. Member
**
Offline Offline

Posts: 98


View Profile
« Reply #2 on: September 23, 2011, 02:00:58 PM »

Take a look at this:

http://www.gray-world.net/
Logged
3xban
Hero Member
*****
Offline Offline

Posts: 605


View Profile WWW
« Reply #3 on: September 23, 2011, 02:34:20 PM »

Thanks guys, I'll take a look through those.  I guess what we are trying to test is the following...

  • Malicious software gets on victim system.
  • Victim doesn't know and software is not exhibiting any strange behavior so scanners and IDS are not picking it up.
    • Software needs to get out to internet - oh snap authenticating proxy what shall I do???
    • oh hey, you have an active IE session open already, can I borrow that?  Thanks!
    And boom goes the dynamite.  Now given if the above is possible our next challenge is how can we detect such traffic?  I will fiddle around with Burp/Paros as well, either way they look like fun.  Sadly Gray-world is blocked here, but I can take a look at that later at home.
Logged

Certs: GCWN
(@)Dewser
mambru
Jr. Member
**
Offline Offline

Posts: 98


View Profile
« Reply #4 on: September 23, 2011, 03:08:28 PM »

There are some very interesting papers and tools in the give site.

I guess your scenario is somehow feasible, the malware creates some hooks, injection some extra data in your session. The only hurdle I see is that the (legit) web server the user is communicating with would need to contain some other piece of malware as well, in order to extract the data from the covert channel.
Logged
MaXe
Hero Member
*****
Offline Offline

Posts: 669


I've just upgraded myself to a cyborg muahahaa!!1


View Profile WWW
« Reply #5 on: September 25, 2011, 05:41:07 PM »

I have an idea.

Imagine a rogue addon in your browser (e.g. FireFox), which sends off data to a remote (unauthorized) 3rd party, every time you log into a website, etc. (This has been seen before.)

Another scenario could be that malware had altered the browser, so that not only would you be able to browse websites, but e.g., a trojan would simultaneously send traffic across the session being in use (or just re-using logins whenever it finds one if possible and one-time tokens are not in use).

In a simple case, the unauthorized traffic could go through via "xmlrpc".

Ettercap has the functionality to inject data into a stream, but I haven't really tested this, but there's a button you can try  Grin (It's when you perform Man in the Middle attacks.

But in theory yes it's possible. But there's several layers this could occur on, ranging from the physical level (well, almost), and onto the application layer (the web browser, and yes I'm referring to the OSI model  Smiley )

I don't have any practical examples for you to try out though.
Logged

I'm an InterN0T'er
3xban
Hero Member
*****
Offline Offline

Posts: 605


View Profile WWW
« Reply #6 on: September 26, 2011, 10:49:13 AM »

Excellent insight MaXe!  I appreciate the input.  Friend of mine and I were bouncing around the idea of maybe not using web traffic but using the TCP-over-DNS method.  Of course we need a DNS server out the outside under our control, that should not be difficult to accomplish.  The client side may be a bit more of a challenge.

If anything I got the gears turning on this.  And in theory just about anything is possible.  I just need more time in the day to work on this.  Unfortunately most of this has to be done when I am at home due to certain restrictions at work.  If I come across something I'll be sure to update.
Logged

Certs: GCWN
(@)Dewser
MaXe
Hero Member
*****
Offline Offline

Posts: 669


I've just upgraded myself to a cyborg muahahaa!!1


View Profile WWW
« Reply #7 on: September 26, 2011, 12:38:29 PM »

Excellent insight MaXe!  I appreciate the input.  Friend of mine and I were bouncing around the idea of maybe not using web traffic but using the TCP-over-DNS method.  Of course we need a DNS server out the outside under our control, that should not be difficult to accomplish.  The client side may be a bit more of a challenge.

If anything I got the gears turning on this.  And in theory just about anything is possible.  I just need more time in the day to work on this.  Unfortunately most of this has to be done when I am at home due to certain restrictions at work.  If I come across something I'll be sure to update.

No problem, and nice ideas you're bouncing around Grin You should know, that some companies filter all outgoing ICMP and DNS traffic, so it has to pass by a proxy server first, while some companies, blindly lets all DNS and ICMP traffic through.

What can you use these open and unprotected data tunnels for?

Trojan data of course! (During an ethical pentest assignment that is hehe)

Most covert channels via ICMP, seems to be using almost standard headers but instead of the usual contents, it's actual data inside! The ICMP channel often seems to work with ICMP ECHO and REPLY messages, which can probably even contain CRC values, etc. making the data transfer somewhat reliable.

Covert DNS Channels, uses subdomain wildcards and a DNS server out on the Internet to relay traffic back and forth. It's also a brilliant example of covert channels.

I definitely recommend taking a few looks at the resources I've gathered below.

Update: Oh yeah, I forgot to mention that some SPI (Stateful Packet Inspection) firewalls, will most likely drop this kind of traffic. Still, even if the target company does have a firewall that supports this feature, it may not be turned on or configured correctly.


Resources:
http://www.coresec.org/2011/04/21/reverse-connection-using-icmp-shell/
http://tourdot.fr/venik
http://caia.swin.edu.au/cv/szander/cc/cc-implementations-bib.html
http://www.securityfocus.com/tools/category/97
« Last Edit: September 26, 2011, 12:40:08 PM by MaXe » Logged

I'm an InterN0T'er
tturner
Sr. Member
****
Offline Offline

Posts: 432


View Profile WWW
« Reply #8 on: September 27, 2011, 10:32:15 AM »

Deep packet inspection chews up a ton of firewall resources so it's not uncommon to only see that configured on assets in the DMZ or not at all. Stateful inspection is much easier to bypass. I'm not a firewall guru but my understanding is that SPI is only looking at state, ports etc, so a legitimate outbound connection tunneling malicious traffic may not be flagged unless the firewall is actually doing DPI. Application layer firewalls are often used for this but I see more "firewalls" being sold these days with this functionality built-in that just needs to be enabled.
Logged

Certifications:
CISSP, CISA, GPEN, GWAPT, GAWN, GCIA, GCIH, GSEC, OPSE, CSWAE, CSTP, VCP

WIP: OSWP, GSSP-JAVA, GXPN

Udacity on hold, again. I suck.

http://sentinel24.com/blog  @tonylturner http://bsidesorlando.org
mambru
Jr. Member
**
Offline Offline

Posts: 98


View Profile
« Reply #9 on: September 27, 2011, 03:48:47 PM »

Take a look at Joanna Rutkowska's Nushu, it's closer to what you want:

http://invisiblethings.org/code.html
Logged
Pages: [1]   Go Up
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines
Joomla Bridge by JoomlaHacks.com
Valid XHTML 1.0! Valid CSS!
Page created in 0.061 seconds with 23 queries.
 
Exclusive Deal

sansfire13_245x90_cw90.jpg
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:
 
Recent Forum Topics
EH-Net News Feeds
Latest Additions
 
         
Advertisement

© 2013 The Ethical Hacker Network
Joomla! is Free Software released under the GNU/GPL License.