Benign Unexpected URLs - Part 2 - Valid Entry Points
Part 1 listed various URLs that may be requested from a web site or application, and which do not exist leading to an error. Part 2 re-uses that list and adds to it, to define all valid entry points.
Determining the valid entry points to an application is a necessary requirement for some types of threat modelling, attack analysis and application defense. It is also something attackers will try to do (to determine the "attack surface"). Therefore, it really is something that good development teams should keep track of. Web application firewalls (WAFs) often try to build models for their own use based on the traffic examined, but even those may not include URLs that are requested infrequently, new valid URLs, or URLs which no-one has ever requested before but which contain a vulnerability.
The "page" addresses of HTML files or dynamic content may be well known, but what other benign URLs are valid? Static files such as style sheets, JavaScript libraries, file downloads, images and videos should be identified. The Type B URLs mentioned in Part 1 could also be valid entry points to the web site or application. Check each category and find out whether any really do exist (and thus don't generate 404 errors).
But also check for the following items which may also be valid entry points, and therefore benign.
| Category | Comments and examples |
|---|---|
| Custom Errors | Custom error pages should have been set up and these may be referenced as a direct URL. |
| News Feeds | RSS and atom feeds may be generated by the application. |
| Virtual Addresses | Aliases (short addresses that redirect to the longer real URL) and temporary or permanent redirections set up when a site's structure changes. |
| TLS Redirection | Redirection from non-SSL (non-TLS) to SSL URLs and vice versa |
Where there are a large number of static files and it is not appropriate to list every file name, it is worthwhile documenting the allowed extensions and any file naming conventions expected. Whitelisting a whole folder as a valid entry point is not recommended in case an attacker manages to upload a script or otherwise malicious file into it, which could then be used to bypass entry point validation logic.
In Part 3 I will examine additional or missing request parameters which might have a benign cause.
Posted on: 27 October 2010 at 15:32 hrs

Comments are filtered automatically and should appear shortly after they been checked.