Webapp-scanner

Webhosting customers are messies, at least some of them – or (sadly, that’s the truth) the bigger part of them. Some people still think they can run the same blog software or CMS for years without ever caring about upgrading. I tell my customers over and over how important it is, to keep their website up-to-date and don’t let any outdated code lying around. Still, as long as their website doesn’t get hacked or defaced, they don’t really seem to care.

If you’re in the same situation as me and you are providing webhosting services to your friends or customers, read on.

This project is hosted on Github

Purpose: This script scans the user directories and reports the installed CMS packages and what version it is running. It can be set to report just outdated packages and scan specific users. It has the ability to search for common versions of the following packages:

The script is based on Software Version finder by James Dooley. I have extended it to also scan for Typo3 installations and provide some more output.

Installation:

That’s it. If you wish to scan all your customers homes, make sure you run this as root. It won’t alter any files on your system, simply scan it.

For more convenience, add the following alias to your ~/.bashrc or globally to /etc/profile:

Usage:

For usage please consult the README.md on Github.

Sample output:

Scanning the whole /var/www recursively for any webapps (this will also report webapps that are up-to-date):

 CSV output:

In addition to the default output, we will get an additional version status code:

  • 0: OK (version equals or is greater than current version)
  • 1: WARNING (version is greater than minimal version but not >= current version)
  • 2: CRITICAL (version is lower than minimal version)

sample output:

With the CSV output you are able to use our webapp-scanner in your own application. You could e.g. warn your customers on a weekly basis about their outdated web applications. As a responsible web hosting provider, you should force them earlier or later to upgrade their installations to the latest versions. Also, you should provide them with HOWTO’s, instructions, or personal support to ease the upgrade process of their web applications.

Leave a Comment

css.php