Changes between Version 4 and Version 5 of web-app-security


Ignore:
Timestamp:
Oct 1, 2017, 6:45:56 PM (8 years ago)
Author:
Jamie McClelland
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • web-app-security

    v4 v5  
    11= Web Application Security =
     2
     3== Control Panel Installation ==
     4
     5Enable control panel installation of WordPress and Drupal via control panel. This step helps us keep track of which sites are running Drupal and WordPress so we can properly upgrade them and check them for compromises.
     6
     7We currently allow for Drupal 7 installation via the Control panel, but not Drupal 8 (see #11601)
     8
     9WordPress is almost ready (  )
     10
     11== General web app maintenance ==
     12
     13The script `mf-check-web-app` automates the maintenance of Drupal and WordPress sites on our servers.
     14
     15Usage is:
     16
     17{{{
     18Usage
     19
     20/usr/local/bin/mf-check-web-app --path [PATH]  --action [ACTION] --quiet
     21 
     22 PATH
     23   
     24   auto - check all directories on the server based on web-app-security directory files
     25     otherwise, only check the single path provided
     26   default is current working directory
     27 
     28 ACTION
     29 
     30  integrity - check file integrity
     31  core - means upgrade just core
     32  plugins - upgrade just third party plugins, modules and themes
     33  auto - do whatever is defined in the web-app-security directory
     34  default is integrity
     35 
     36 QUIET
     37
     38Output nothing. Check logs.
     39}}}
     40
     41It lives in /usr/local/bin and can be run as root (in which case it drops privileges to the owner of the Drupal or Wordpress site) or as the user that owns the site.
     42
     43The default action (when run with no arguments) is to run an integrity check on the current workding directory.
     44
     45When operating in "auto" mode, it finds web apps by searching for the files `/home/members/*/sites/*/.red/web-app-security/{drupal,wordpress}-{core,plugins,integrity}`.
     46
     47If it finds files, it runs according to the file included.
    248
    349== Monitoring of compromised sites ==
    450
    5 [In process, see #13159]
     51The monitor script mf-monitor-webapps executes the script mf-check-web-app and triggers a Nagios warning if it finds any web app sites that fail the test.
    652
    7 The monitor script mf-monitor-webapps executes the script mf-check-webapps and triggers a Nagios warning if it finds any web app sites that fail the test.
    8 
    9 == Search server for compromised sites ==
    10 
    11 The script `mf-check-webapps` searches the given server for any web app that has been compromised.
    12 
    13 It finds web apps by searching for the files `/home/members/*/sites/*/.red/web-app-security/{drupal,wordpress}-core`.
    14 
    15 If it finds either file, it runs a check to see if the specified web app has been compromised.
    16 
    17 In normal mode, it outputs each site that has checked and the status of the site. In quiet mode, this output is supressed.
    18 
    19 Once the run is complete, it either:
    20 
    21  * Returns no output and the exit code 0 to indicate that no sites show signs of compromise
    22  * One line with a comma separate list of site names that are compromised and the exit code 1 to indicate a compromise
    23  * Error output and the exit code 255 to indicate an error prevented the script from running properly.
    24 
    25 == Control Panel Installation ==
    26 
    27 Enable control panel installation of WordPress and Drupal via control panel.
     53In process, see #13159.
    2854
    2955== Auto Upgrades ==
    30 [NOTE: Not yet implemented, still under development.]
     56
     57See #11405.
    3158
    3259May First/People Link provides a service to automatically provide security updates to your web applications. If you opt-in, your web application will be checked every night to see if any security updates are available and, if so, they will be installed.
     
    4875To indicate that you want to have your web application automatically upgraded, please create a file or files with the following names to indicate what you want upgraded.
    4976
     77 * drupal-integrity
    5078 * drupal-core
    5179 * drupal-modules
    5280
     81 * wordpress-integrity
    5382 * wordpress-core
    5483 * wordpress-plugins
     
    91120
    92121== Open Tickets tagged `web-app-security` ==
     122
    93123[[TicketQuery(format=table,status=new|assigned,keywords=~web-app-security)]]