Bitzu

CPSA ยท Web testing techniques

Spidering vs forced browsing

Crawling linked content, brute-forcing paths, default and unlinked files and client-side functionality.

Key points

  • Spidering: follows the links and forms the application exposes, mapping what is reachable from the UI.
  • Forced browsing: guesses paths and file names from wordlists, revealing unlinked content such as backup files, admin panels, default files, old versions.
  • Client-side code (JavaScript, comments, hidden fields): often names endpoints the crawler never clicks.

Practice questions

Single choice

Which resource is a spider LEAST likely to discover on its own?

  1. A page linked from the main navigation menu
  2. A form action URL present in the HTML
  3. A file such as config.php.bak that no page references
  4. A script URL included in a script tag
Show answer

Answer: C. A file such as config.php.bak that no page references

A spider only follows references present in the content it fetches. A backup file that no page links to must be found by guessing names (forced browsing).

Select all that apply

Which client-side items can reveal endpoints or paths a spider may miss?

  1. URLs built inside JavaScript files
  2. HTML comments left by developers
  3. The TCP window size of the response
  4. Hidden form fields in the page source
  5. The packet TTL value
Show answer

Answer: A. URLs built inside JavaScript files, B. HTML comments left by developers, D. Hidden form fields in the page source

JavaScript files and HTML comments frequently contain API paths or leftovers; hidden form fields can expose internal names. Response status line text and the TCP window size say nothing about application paths.

True or false

If a page is not linked anywhere, it is protected from being accessed by users.

Show answer

Answer: False

False. Not being linked is obscurity, not access control. Anyone who guesses or learns the URL can request it unless the server enforces authorisation.

Practice 8 questions on this topic in Bitzu

Short lessons, instant explanations and spaced review of what you get wrong. Free on iOS and Android.

Download on the App StoreGet it on Google Play

More CPSA topics in this module