Skip to content

mandatory validation patterns #3522

Description

@mapserver-bot

Reporter: regodon
Date: 2010/08/20 - 12:58
Trac URL: http://trac.osgeo.org/mapserver/ticket/3522
I find that variable substituion is a powerful but very dangerous feature as it is very prone to sql injections.

I would like that it were mandatory to define validation patterns for each variable (%variable%) present in the mapfile. Or may be there should be a "SECURITY strict" directive to enable/disable this behaviour.

Also, i have found that validation_patterns are global to all the mapfile, not restricted to the layer where they are defined into, so it doesn't matter in which layer you define them. It's logical since variable substituion is global too. So, maybe all validation patterns should be defined together at map level and not inside layers.

Just my thoughts.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions