Possible SQL Injections with postgis TIME filters #4834

tbonfort opened this Issue Dec 31, 2013 · 0 comments


None yet

1 participant


As part of @rouault 's WFS 2.0 work he discovered a SQL injection issue specific to WMS-Time and perhaps SOS services. It has to do with PostGIS and time validation. Based on Even's tests for WMS-Time the vulnerability is limited to unintended disclosure of data from the specific table, if specific conditions are met:

  • WMS-Time is configured
  • PostGIS is used
  • GetFeatureInfo output formats dump all attributes (e.g. gmlitems all)

Basically you can muck with the where clause but can’t execute secondary commands (e.g. delete …). It may be possible to access unintended data through the map itself (e.g. via a label item) but that seems pretty hard. Again, SOS services have not been examined.

@tbonfort tbonfort was assigned Dec 31, 2013
@tbonfort tbonfort closed this Jan 2, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment