Web security

Fingerprinting: definition

Definition

Fingerprinting means identifying the software that runs a website, its version and its components from visible clues: HTTP headers, the generator tag, file paths, cookies. Bots use it to pick which known vulnerabilities to try on each site.

Fingerprinting, Web security

Fingerprinting is almost always the first step of an automated attack. Before trying anything, a bot wants to know what it is dealing with: WordPress, Joomla! or Drupal, which version, which plugins. This sorting lets it choose, from its list of known vulnerabilities, the ones with a chance of working, and skip sites that don't match. The OWASP Web Security Testing Guide (WSTG) devotes a separate chapter of the information gathering phase to it.

How fingerprinting works

Detection tools compare what the site returns with a database of signatures. OWASP mentions several families of clues:

  • HTTP headers, such as X-Powered-By or X-Generator;
  • cookies, whose name often gives away the software (wordpress_logged_in_…);
  • the HTML code: comments, the <meta name="generator"> tag, software-specific paths;
  • well-known files and folders, tested one by one;
  • error messages that reveal paths or the platform.

Tools such as WhatWeb, Wappalyzer and WPScan automate this work. A bot needs only a few requests to classify a site.

Three-column table: clues in the HTML code (generator tag, wp-content and wp-includes paths, ver parameter, plugin comments), clues in headers and URLs (wp-json link, X-Powered-By, wordpress_logged_in cookies, wp-login.php and xmlrpc.php), and what the bot learns (software, version, plugins, known flaws to try)

Examples on WordPress

A standard WordPress site is recognized very quickly. The get_the_generator() function outputs the <meta name="generator" content="WordPress x.y"> tag in pages and an equivalent in RSS and Atom feeds, version included. Stylesheets and scripts carry the /wp-content/ and /wp-includes/ paths followed by a ?ver= parameter. The Link header announces the REST API, and many SEO, caching and page builder plugins sign the page code with a comment that gives their name and version. Our article on how bots and Wappalyzer recognize WordPress reviews these signatures one by one.

How to reduce your fingerprint

  • Remove the generator tag and the HTML comments left by plugins.
  • Remove X-Powered-By (expose_php = Off in PHP) and make the Server header less talkative, as OWASP recommends for response headers.
  • Remove unnecessary technical links (RSD, shortlinks) and close the URLs you don't use, such as XML-RPC.

Stay clear-eyed: OWASP files these measures under security through obscurity. They slow down the least sophisticated bots and reduce noise, but a determined attacker eventually identifies the software. They complement updates without ever replacing them: a vulnerable plugin stays vulnerable, whether it is visible or not. The article Hiding WordPress: what it does and what it doesn't sorts it all out.

For WordPress

WP Feint targets exactly these clues. The free version removes the WordPress mention, the comments and generator tags of known plugins and some technical links; it can also make the site pass for another CMS, so that bots try attacks that have no target there. The plugin's guide spells out its limits: the imitation adds the best-known clues of the announced software, it doesn't reproduce it in full, and a header may be missing on a page served by an upstream cache.

Further reading

  • Article How bots and detection tools recognize WordPress, and which clues to remove
  • Article Hiding WordPress: what it does and what it does not
  • Article HTML comments and generator tags: erase the traces of WordPress
  • Page Make WordPress look like another CMS
  • Page Remove WordPress technical links

Sources

  1. OWASP WSTG: Fingerprint Web Application Framework (external link, opens in a new tab)
  2. WordPress Developer Resources: get_the_generator() (external link, opens in a new tab)
  3. OWASP: HTTP Security Response Headers Cheat Sheet (external link, opens in a new tab)

All definitions

Start free, go Pro when you’re ready

The free version already hides WordPress and moves the login page. Pro adds aliases, two-factor authentication and monitoring.