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 32 guests and 1 member online
 
Advertisement

You are here: Home arrow Ethical Hacking Discussions and Related Certificationsarrow Web Applicationsarrow Content filtering proxy service
EH-Net
May 24, 2013, 12:14:53 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] 2   Go Down
  Print  
Author Topic: Content filtering proxy service  (Read 11019 times)
0 Members and 1 Guest are viewing this topic.
xFrosty
Newbie
*
Offline Offline

Posts: 14


View Profile
« on: May 13, 2010, 03:05:11 PM »

I'd like to start telling that I'm rather new.. no this is my first "job".. well it's not even a real job it's just a test, ok enough.
I'll have to test his "content filtering service"
the proxy is based on Squid
http://en.wikipedia.org/wiki/Squid_%28software%29
and the content filtering part is managed by DansGuardian
http://en.wikipedia.org/wiki/DansGuardian
all the software is updated to the latest version and the content-filtering is based on (words weight / banned urls and IPs)
everything on an external CentOS machine

for the first tests I'll just have to test for filter evasion nothing hard yet
if this will go well i think he'll make me test it a little bit deeper

could you help me to compile something like a check list about the tests to do?
or just some tips/hints

P.S. I wasn't really sure about the section so feel free to move the post Smiley
Logged
xFrosty
Newbie
*
Offline Offline

Posts: 14


View Profile
« Reply #1 on: May 14, 2010, 10:20:51 AM »

it will be on Tuesday!
Logged
MicroJay
Full Member
***
Offline Offline

Posts: 101



View Profile
« Reply #2 on: May 14, 2010, 10:29:20 AM »

Welcome aboard!

One suggestion would be think like the user that wants to avoid being filtered.  Use google and search for "anonymous proxies".  Click on each link until you are able to view the site.  Done!

If it passes that (you can't get to one), set up a anonymous proxy yourself and see if you can get to it.  (Does it block uncatagorized sites.)

Next...would be to see if there were any vulnerabilities.  But if it is patched fully, it might not be as easy.

Just some quick thoughts as I have gone through this with our content filter devices in the past.  Wink
Logged

GSEC - GCIH - GSNA - GPEN
Ketchup
Hero Member
*****
Offline Offline

Posts: 1021



View Profile
« Reply #3 on: May 14, 2010, 10:59:12 AM »

There is also tunneling, especially over encrypting protocols. 
Logged

~~~~~~~~~~~~~~
Ketchup
xFrosty
Newbie
*
Offline Offline

Posts: 14


View Profile
« Reply #4 on: May 14, 2010, 11:09:45 AM »

Thanks for the answers!

I've been successfully bypassing the filters using a proxy and tunneling (we had the same service at school)

my suggest to fix the proxy (if not elite) problem would be to block all the packets with a "Forwarded" header
and all the tor's endpoints
what you think about it?
Logged
MicroJay
Full Member
***
Offline Offline

Posts: 101



View Profile
« Reply #5 on: May 14, 2010, 11:31:48 AM »

Correct!  VPN or any encrypted tunneling would do as well.
Use that a lot when at hotels!
Logged

GSEC - GCIH - GSNA - GPEN
xFrosty
Newbie
*
Offline Offline

Posts: 14


View Profile
« Reply #6 on: May 14, 2010, 11:39:38 AM »

Thank you xD

any idea how to fix it?
how to filter encrypted traffic.. i was thinking about a..MitM attack (a legit one) made by the proxy (our..their service), but I'm afraid it would mess with the certificates making all the MitM countermeasures go vane
Logged
Ketchup
Hero Member
*****
Offline Offline

Posts: 1021



View Profile
« Reply #7 on: May 14, 2010, 12:07:18 PM »

I am not sure if it can completely fixed.   I usually implement egress filtering at the firewall that only permits traffic from certain hosts.  With Proxies, centralized Email servers, etc, the users don't really need to leave the firewall.   The server makes the request for them.    For those that need more connectivity and are trusted, I make exceptions in the firewall. 
Logged

~~~~~~~~~~~~~~
Ketchup
Equix3n-
Sr. Member
****
Offline Offline

Posts: 386



View Profile
« Reply #8 on: May 14, 2010, 12:15:23 PM »

I don't think you can filter out all tunneling.  You need to develop solid outbound access policy. For HTTP tunneling regularly check the logs and block the relay server. Check for CONNECT requests to odd ports etc.

Edit: Ketchup beat me to it.
« Last Edit: May 14, 2010, 12:18:01 PM by Equix3n- » Logged
xFrosty
Newbie
*
Offline Offline

Posts: 14


View Profile
« Reply #9 on: May 14, 2010, 01:02:51 PM »

i forgot to mention that it blocks all the ports except for the allowed ones unless the Administrator sets it
Logged
Equix3n-
Sr. Member
****
Offline Offline

Posts: 386



View Profile
« Reply #10 on: May 15, 2010, 10:57:54 AM »

The only option I can think of (or find) right now is to block HTTP CONNECT to all websites except the valid ones. Like I previously stated, you'll need o develop strong outbound access rules. If HTTPS is allowed to random sites users can always find a way to bypass the firewall.
If blocking access to all sites is not feasible then you can use various addons with squid to blacklist 'improper' websites. You can easily find a large number of URL blacklists.
Logged
xFrosty
Newbie
*
Offline Offline

Posts: 14


View Profile
« Reply #11 on: May 15, 2010, 11:23:41 AM »

there already is a blacklist (a huge paid blacklist is updated daily) system
and thanks for the comments!

you think that username:password@bannedurl.com would trick the url detection?
if not, would whitelistedurl.mydomain.com be unbannable? (i mean making a sub-domain named after a white listed url
Logged
Equix3n-
Sr. Member
****
Offline Offline

Posts: 386



View Profile
« Reply #12 on: May 15, 2010, 11:39:04 AM »

I'm not sure about it. But I think that in the conflict of whitelist and blacklist, blacklist always wins. But in this case I think that squid shouldn't block whitelistedurl.mydomain.com unless you've added *mydomain.com in the blacklist. Someone more experienced should help here. However, I found links that might be helpful to you.
http://marc.info/?l=squidguard&m=108285256707491
http://marc.info/?l=squidguard&m=108260329925644&w=2
Logged
xFrosty
Newbie
*
Offline Offline

Posts: 14


View Profile
« Reply #13 on: May 15, 2010, 12:45:59 PM »

Thank you!
Logged
chrisj
Hero Member
*****
Offline Offline

Posts: 1163


View Profile WWW
« Reply #14 on: May 15, 2010, 02:03:26 PM »

I haven't played with squid much, but typically if you have something white listed it'll get checked before the black list and always be allowed through.

I'm basing this off firewalls (ip tables, ip chains, and cisco asa), where the allowed traffic usually comes before the deny all statement at the end.

So as far as I understand it, you can have allowed.domain.com in the white list, and *.domain.com in the black list, but you should still be able to get to allowed.domain.com.

I could be wrong. Like I said I'm basing this off my firewall knowledge and applying proxy filters to that.

squid example: unfiltered adults, white listed kids, deny everything else
Logged

OSWP, Sec+
Pages: [1] 2   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.582 seconds with 22 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.