• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

Using ESAPI in CF10/11 for sanitizing input

LEGEND ,
Sep 08, 2015 Sep 08, 2015

Copy link to clipboard

Copied

Hello, all,

The boss has given me the green light for getting rid of Portcullis in favor of ESAPI.  GREAT!!

But all the documentation I've been looking at isn't really helping me to implement it.

What we did have set up with Portcullis was in Application.cfc.  During the onRequestStart(), it checked to see if Portcullis was defined (init it if it wasn't), then passed URL and FORM scopes to Portcullis for scanning.  If Portcullis found something that shouldn't be there, it redirected to the home page.

I'm leaning towards using ESAPI for sanitizing input, not detecting and redirecting.  Is there a way to set ESAPI up to scan entire FORM or URL scoped values within the Application.cfc?   Or am I doomed to going to every form processing page and adding the sanitization to every form or url value?

V/r,

^_^

Views

246

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
no replies

Have something to add?

Join the conversation
Resources
Documentation