Project

General

Profile

Actions

Feature #2051

closed

[PATCH] mod_ssi Add configuration item to disable SSI exec.

Added by benbrown over 15 years ago. Updated almost 9 years ago.

Status:
Fixed
Priority:
Normal
Category:
mod_ssi
Target version:
ASK QUESTIONS IN Forums:

Description

At present lighty does allow for Server Side Includes (SSI) to be used, however it's an 'all or nothing' option, which enables the potentially dangerous 'exec' option. This could be used by malicious users of hosting provided on a lighty based platform to run arbitrary commands.

Apache has an 'IncludesNOEXEC' option, which enables SSI, however the exec option is not enabled. In order for hosting providers (which may have many customers using legacy SSI pages) to provide a similar system, I have written a patch for mod_ssi which gives a configuration option allowing the server operator to disable the exec option on SSI pages, as well as a debug flag. At present the debug flag only does one thing, it prints a message to the error log when someone tries to use the exec feature when it is disabled. However, this may be useful for further development of the plugin in the future.

I have also corrected what I assume is a typo in an error message below some of the changes I have made.

The additional config items are:
[code]
ssi.exec
ssi.debug
[/code]

ssi.debug can be set to 1 or 0. ssi.exec can be set to "disable" or not supplied. As people may be relying on the exec feature (I really hope that they aren't!) I thought it would be safer to allow exec by default, and give the option to disable it.


Files

#2

Updated by benbrown over 15 years ago

  • % Done changed from 0 to 90
#3

Updated by gstrauss almost 9 years ago

  • Category set to mod_ssi
  • Target version set to 1.4.40
#4

Updated by gstrauss almost 9 years ago

  • Status changed from New to Patch Pending
#5

Updated by gstrauss almost 9 years ago

  • Status changed from Patch Pending to Fixed
Actions

Also available in: Atom