http://conference.hackinthebox.org/hitbsecconf2010kul/



hackinthebox
 ::  hitb portal  ::  hitb portal (SSL)  ::  hitb forum (SSL)  ::  hitb security conference  ::  hitb training ::  hitb irc  ::  hitb photos  ::  hitb videos :: 
Who's Online
There are 209 unregistered users and 0 registered users on-line.

You can log-in or register for a user account here.



Main Menu

Top Stories for Today
[411] How to Design a Secure DMZ
[400] German ID cards hacked by the CCC
[355] Malware hosted on Google Code project site
[251] Apple's elephant in the cloud
[227] Algerian Hackers Attack Wrong Website
[226] Russian cops cuff 10 ransomware Trojan suspects
[209] How Google attacks changed the security game
[197] Feds crack phone clone scam that cost Sprint $15m
[197] PSJailbreak code leaked online
[189] How Your Cloud Dream Is Becoming a Security Nightmare
[189] Heartland to pay Discover $5M for 2008 data breach
[187] Apple's iOS 4.1 ships Sept. 8
[181] US undergrads crash NASA satellite into Arctic
[180] Malaysian National Institute of Public Administration suffers cyber attack
[160] DARPA launches insider threat detection effort for military
[143] China demands real names from mobile phone users
[137] VMWare Sees Big Business In Becoming The Internet Operating System
[125] Windows Phone 7: Done

View the Top 50 articles

Top 20 of the Last 2 Weeks

Past Articles
Wednesday, September 01
·Moscow police investigate alleged ransomware gang
·Novell rolls cloud-security service
·More IT managers plan to spend less, survey finds
·Twitter Turns to OAuth for Application Authentication
·Verizon Uses VMware for Enterprise Cloud Service
·Five Things You Need To Know About IPv6
·iPhone 4 with New Antenna Coming Soon?
·Mark Zuckerberg fights to keep life private
·Android Tablet flood is imminent
·Hackers Steal $600,000 from Catholic Diocese
·Pirate Bay secures documentary funding from fans in just 3 days
·Darpa’s Star Hacker Looks to WikiLeak-Proof Pentagon
·Hackers Focus on Misconfigured Networks, Survey Finds
·Australian ban on PS3 hack extended to September 3
·Apple to offer live video stream of Wednesday's keynote
·US finally reforming its high-tech export control system
Tuesday, August 31
·Wikileaks moves servers to an underground nuclear bunker
·Indian e-voting critic released on bail
·Skype might be bought by Cisco
·Commonwealth Bank of Australia security upgrade causes ATM outage
·Google aims to wipe smile off Facebook
·Will Intel's Sandy Bridge pose a threat to discrete GPUs?
·3M to buy security firm Cogent for $943 million
·Microsoft to build giant data center
·Apple still hasn't fixed iPhone 4 proximity sensor bug
·7 skills every IT manager needs to survive the 2010s
·Intel buys wireless chip tech in mobile-phone push
·Hackers Port Android to Nokia Phones
·Old Apple QuickTime code puts IE users in harm's way
·India Could Face Onslaught of Pakistani Hackers, Say Intelligence Officials
 Older articles

Web Application Footprinting & Assessment with MSN Search
Posted by l33tdawg on Tuesday, December 13, 2005 - 12:15 AM (Reads: 28648)
Source: HITB E-Zine Issue #37



By: Shreeraj Shah

Introduction

Any search engine database is a very powerful source of information for web applications. The Search Engine’s spiders are well-powered to run frequently on sites and capture all possible links. As an end user, however, we are more interested in the searching interface and criteria these engines provide. By using their search options, end users can craft intelligent queries against a database and fetch critical information. There are several tools out there that query the Google database and fetch this sort of security-related information about web applications.

This paper describes some of the queries that can be run against SEARCH.MSN in order to fetch important information that would eventually help in web application assessment. SEARCH.MSN provides web services APIs to build applications using their search interface.

More information can be gathered from http://search.msn.com/developer/ To be able to use SEARCH.MSN, you will require an Application ID. This can be obtained using MSN passport. Queries are limited to 10,000 a day and allow a total of 50 results for each query. This provides great flexibility to the application. As a security tool, substantial information can be queried from MSN search, making it a handy tool to have in your toolkit. For the examples outlined in this paper, some of the information is retrieved using this interface, with a sample application called wapawn.

Web application footprinting with MSN search

One of the challenging tasks for security professionals is to discover web applications belonging to specific clients, using a limited set of information. Often, the only information we have in place is an IP address or a higher-level domain, like, for instance, “icenet.net” (a local ISP of the city). Beginning with this zero-level information, we attempt to see what else we can discover. We can divide our footprinting exercise into two sections – host-level and domain-level.

Host footprinting

One of the problems faced, is to find reverse DNS lookup in a multihosting scenario. When more than one web applications is hosted on one IP address, it is important to know the correct application host name in order to retrieve information related to this specific web application. This host information can be passed to “Host:” in the HTTP header section, while making HTTP requests to specific IP addresses.

Here is a result of a query run using the IP directive – ip:203.88.128.11 – on a web API interface. This is a sample application to query MSN search over their web services. The same objective can also be achieved on the traditional web interface provided on their web site.

We have successfully obtained the above hosts running on specific IP address, 203.88.128.11. Shown below is a screenshot of running the exact same query on their web interface.

This directive is very useful in doing reverse host finding despite DNS not having a PTR record. MSN search discovers an IP address and reports each web application host found pointing to this IP address. It is possible to choose how results of a search query appear. To get a unique value or just one value for each of the sites “discovered”, use settings. This is very useful to make sure we get just one value. In the above example, we were interested only in unique hosts pointing to a particular IP address. Here is the option that needs to be modified that would allow you to set up just such a scenario.

Domain footprinting

MSN search supports the “site” directive that fetches all possible applications running on that particular domain and any child domains. For example, we can run the following query and fetch this result set.

The above screenshot shows all the different applications running on the “icenet.net” domain. All applications running on the child domain are also fetched. This is the easiest way of getting all applications belonging to a sample domain. Here is how you can get it from their web interface instead of from web services.

Getting cross-domains pointing to a domain

Cross-domains are domains that point to the application but do not reside on the same domain despite belonging to the same client or group. Such domains cannot be footprinted using either DNS or the “site” directive. But if we are able to analyze and somehow obtain a list of web applications or sites that are pointing to this particular application, we will be able to get access to all cross-domain references.

An example should make things clearer: Let us assume that the application called “www.icetel.co.in” belongs to the “icenet.net” domain and is part of their IP address range. How do we go about footprinting this domain? In other words, is there a way to discover domains or applications that are pointing to the “icenet.net” domain?

Incidentally, there is a way. The “linkdomain” directive on MSN does precisely this – retrieve a list of pages that point to any page residing on this particular domain. Interestingly, the following query can fetch an important list of hosts and domains.

linkdomain:icenet.net –site:icenet.net

There are two parts to this query: one, we search for “linkdomain: results and the second, we negate(–) any of the results that are part condition “–site:icenet.net”. Shown below is the screenshot:

And here’s the result from the web interface.

This cross-domain harvesting method gives us access to another set of applications that belong to the same family or group, based solely on their IP range. Needless to say, “linkdomain” is an interesting switch to explore while performing web application footprinitng; it may throw up some unexpected sets of results.

Other tricks and tips that can be leveraged in web application assessment

1. Tuning search with interesting directives One of the interesting directives that MSN search supports is selecting parameters for tuning search results, as is shown in the screenshot below:

This can help in generating “fuzzy” search results as well as recently updated pages. Using this directive we can locate the most recently updated pages and can differentiate these from the last set of links or pages collected. This differentiation method is required in order to generate incremental security assessment and perform assessment on newly added resources from the clients. For example, here’s how we can obtain fresh search results for “icenet.net”: site:icenet.net {frsh=100}

2. Web application profiling

We can also use the “site” directive to grab all links for specific web applications. Simultaneously, we can also fetch cached pages and perform HTML sifting. This would provide information such as forms, applets, objects, etc. With this information in place, resource mapping can be performed on the application to define attack points for SQL injection or Java decompilation.

3. Assessment and file search

MSN provides directives like “contains” and “filetype”. contains provide a page which points to specific file types. For instance, the following search would return a page location that points to the location of the “pdf” files, residing on, say, the “icenet.net” domain. site:icenet.net contains:pdf This directive can help in profiling high value targets and resources which point to important resources. “filetype” is the directive that can help in locating different file extensions such as html and pdf.

4. Page scrubbing with in* directives

It is possible to look for specific information at specific locations within an HTML page with different directives like inurl, inanchor, inbody, intitle, etc. These directives allow crafty search queries to be built to look for specific information. For example, if we want to find all PHP pages residing on the“icenet.net” domain, our query would be “site:icenet.net inurl:php”. Such queries assist in web application assessment for large domains.

5. Restricting query with respect to location

MSN has an interesting directive called “loc” which can be used to find specific resources located in specific countries. For instance, to see all pages of the “icenet.net” domain residing in India only, our query would be “site:icenet.net loc:IN”. This can be useful in cases where the scope of assessment on large domains is limited to specific geographic locations.

Conclusion

Web application security assessment is always a challenge; more so, when beginning with zerolevel information about the application. Out of intense complexities emerge intense simplicities. By utilizing the extremely powerful search options provided by the MSN search engine to construct intelligent queries that fetch critical information, this article seeks to offer simple solutions to footprinting web applications in different domains or those that are mapped to a single IP address.



1.) Web Application Footprinting & Assessment with MSN Search - Shreeraj Shah
2.) Biometrics and You - Don Parker
3.) Review: Mac OS X x86 10.4.1 & 10.4.3 - L33tdawg
4.) eXploiting Local Stack on Windows - Nish Bhalla
5.) Reverse engineering a shareware tool and writing a proper keygen for it - azerton
6.) Story of a dumb patch - Cesar Cerrudo

(Printer-friendly page Send this story to someone)

 
Top 10 Articles from the last 2 weeks for Articles

· Articles Postings

· Postings by l33tdawg


Login
 



 


 Log in Problems?
 New User? Sign Up!

HITB eZine Issue 003

Last 15 Postings to HITB Forum

Topics
· All topics
· AMD News (Aug 10, 2010)
· Apple News (Sep 02, 2010)
· Articles (Mar 03, 2009)
· Ask Us (Feb 01, 2003)
· Audio/Video (Sep 01, 2010)
· Encryption (Aug 30, 2010)
· Games (Aug 27, 2010)
· Hardware (Sep 01, 2010)
· HITB News (Aug 19, 2010)
· Industry News (Sep 02, 2010)
· Intel News (Aug 31, 2010)
· Law and Order (Sep 02, 2010)
· Linux (Aug 30, 2010)
· Microsoft (Sep 02, 2010)
· Networking (Sep 01, 2010)
· PDAs (Feb 09, 2007)
· Privacy (Sep 02, 2010)
· Red Hat (Mar 30, 2010)
· Science (Aug 30, 2010)
· Security (Sep 02, 2010)
· Software & Programming (Sep 02, 2010)
· Spam (Sep 01, 2010)
· Technology (Aug 30, 2010)
· Transmeta (Jul 07, 2007)
· Viruses & Malware (Sep 02, 2010)
· Wireless (Aug 26, 2010)

Packet Storm Security Latest
· nullconGoa2011-CFP.txt
The Call For Papers for nullcon Dwitiya 2.0 is now open. It takes place February 25th through the 26th, 2011 in Goa, India.
· amirocmsfaq-xss.txt
Amiro.CMS version 5.8.4.0 suffers from a stored cross site scripting vulnerability.
· advanced-xss.pdf
Whitepaper called Advanced XSS. Written in Arabic.
· moaub01-cpanel.pdf
Month Of Abysssec Undisclosed Bugs - Cpanel suffers from a PHP restriction bypass vulnerability. Versions 11.25 and below are affected.
· moaub01-adobe.pdf
Month Of Abysssec Undisclosed Bugs - Adobe Acrobat Reader and Flash Player suffer from a newclass invalid pointer vulnerability.
· MDVSA-2010-168.txt
Mandriva Linux Security Advisory 2010-168 - Double free vulnerability in the ssl3_get_key_exchange function in the OpenSSL client in OpenSSL 1.0.0a, 0.9.8, 0.9.7, and possibly other versions, when using ECDH, allows context-dependent attackers to cause a denial of service and possibly execute some sources refer to this as a use-after-free issue. The updated packages have been patched to correct this issue.
· ZSL-2010-4961.txt
LEADTOOLS version 16.5.0.2 suffers from buffer overflow, integer overflow and denial of service vulnerabilities related to Active-X Common Dialogs.
· cpanelcp-xss.txt
cPanel Customer Portal suffers from a cross site scripting vulnerability.

Follow us
Join our Facebook Group

Follow us on Twitter

Follow our RSS feed


HITB Affiliates

Page created in 0.846330881119 seconds.