Title:
Values coming from in-built struct objects/tag-specific variables should not be flagged for vulnerability.
| View in TrackerStatus/Resolution/Reason: Closed/Fixed/
Reporter/Name(from Bugbase): / ext-user (S Preethi)
Created: 11/16/2015
Components: Security Analyzer
Versions: 2016
Failure Type: Non Functioning
Found In Build/Fixed In Build: CF12 /
Priority/Frequency: Normal / Most users will encounter
Locale/System: English / Linux All,Mac 10 All,Solaris All,Win XP All
Vote Count: 0
Related Bugs:
4049701 - Similar to ColdFusion Builder
4130097 - Similar to ColdFusion Builder
Problem:
Values coming from in-built struct objects/tag-specific variables should not be flagged for vulnerability, since it is a known value posing no threat.
Method:
In the below code, the following variables should not be thrown as vulnerability:
1)#cffile.timecreated#
2)#cffile.serverdirectory#
3)#cffile.serverfile#
<cffile
action = "uploadAll"
destination = "c:/uploads"
nameConflict = "overwrite">
<cfquery name="saveUploadInfo" datasource="cfmx_db">
insert into uploadedfile (datetimecreated, serverdirectory, serverfile)
values (#cffile.timecreated#,'#replace(cffile.serverdirectory,"\","/","all")#','#cffile.serverfile#')
</cfquery>
----------------------------- Additional Watson Details -----------------------------
Watson Bug ID: 4087973
External Customer Info:
External Company:
External Customer Name:
External Customer Email:
Attachments:
Comments: