Bitzu

CPSA ยท Open source information gathering

Target website analysis

Mining visible content and HTML source for names, technologies, comments and links.

Key points

  • The target's own site is open-source intelligence you can read without any probing.
  • Visible pages give staff names, e-mail formats, products and partners.
  • The HTML source adds developer comments, meta tags (such as a generator tag naming the CMS), script and stylesheet paths, file extensions that hint at the server technology, and links to other hosts.
  • Record each finding with its source page.

Practice questions

Single choice

Why can a tester read developer comments left in a page's HTML?

  1. The browser receives the full HTML, comments included, and simply does not render them
  2. The browser asks the developer for a copy of the comments
  3. Comments are stored only in the server's logs
  4. Comments are visible only after authenticating as admin
Show answer

Answer: A. The browser receives the full HTML, comments included, and simply does not render them

HTML comments are part of the document the server sends, so the browser receives them even though it does not display them. View-source or a saved copy shows them. Comments are not removed by the browser and are not encrypted.

Select all that apply

Which items found in a page's HTML source can help an information-gathering exercise?

  1. Developer comments with names or paths
  2. A generator meta tag naming a CMS
  3. The server's TLS private key
  4. Absolute links to other hostnames
  5. The firewall's complete rule set
Show answer

Answer: A. Developer comments with names or paths, B. A generator meta tag naming a CMS, D. Absolute links to other hostnames

Developer comments, a generator meta tag naming the CMS, and absolute links to other hosts or subdomains are all delivered in the source. A server's TLS private key and its full firewall rule set are never part of a web page.

True or false

True or false: text hidden from view with CSS (for example display:none) is not sent to the browser, so it cannot be read in the source.

Show answer

Answer: False

CSS only changes how the page is drawn. The hidden text is still in the HTML the server sent, so view-source or developer tools reveal it.

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