Skip to content

Harden express-processimage for use in production #4

@papandreou

Description

@papandreou
  • Validate the GET parameters so we don't pass arbitrary data to command line programs
  • Make it possible to disable certain filters and operations so things like inkscape and svgfilter don't have to be exposed in cases where they aren't needed
  • Add a configurable max resolution of input and output images to prevent DOSing the server by eg. scaling an icon to 100000x100000 pixels. Sort of like gm -limit Pixels <numberOfPixels>.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions