I have inherited the great legacy of ColdFusion. There are hundreds of <cfquery> some sql here # variable # </cfquery> which should be parameterized according to: <cfquery> some sql here <cfqueryparam value = "# variable #" /> </cfquery>
How can parameterization be added programmatically?
I was thinking of writing some kind of regular expression or sed / awk solution, but it seems like someone has handled such a problem somewhere. Bonus points are awarded for automatically detecting the sql type.
queryparam, RIAForge: http://qpscanner.riaforge.org/
script: http://www.webapper.net/index.cfm/2008/7/22/ColdFusion-SQL-Injection, . , , , .
, CFQueryParam, , , .
, <cfqueryparam> .
, , , "".
<cf_inputFilter scopes = "FORM,COOKIE,URL" chars = "<,>,!,&,|,%,=,(,),',{,}" tags="script,embed,applet,object,HTML">
We used this to counteract the recent SQL injection attack. We added it to the Application.cfm file for our site.
I doubt there is a solution that exactly fits your needs. The only option that I see is to write your own recursive search that creates a report for you or uses one of the applications / scripts listed above. Basically, you will have to edit each page or approve all automatic changes.
Source: https://habr.com/ru/post/1696882/More articles:Export report services report to Excel and wrap around table header - reporting-servicesLack of classes in WMI when not an administrator - vbscriptEncryption / Decryption on machines - this is no-no - windows-vistaDoes emacs have something like vi "set number"? - editorHow can I execute an action n-many times in TextMate (both Emacs and Vim can do this easily!)? - textmateGuile Outline - Cited Period? - schemeA simple string haskell controls - stringHow to tweak in jsp? - jspПочему моя программа cocoa получает EXC_BAD_ACCESS во время запуска? - cocoaBest PHP thumbnailer / resizer class? - phpAll Articles