-
-
Notifications
You must be signed in to change notification settings - Fork 182
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2181 from zspitzer/LDEV-3451
LDEV-3451 disable XXE by default
- Loading branch information
Showing
8 changed files
with
363 additions
and
81 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,65 @@ | ||
component { | ||
this.name="LDEV1676"; | ||
param name="FORM.Scene" default=""; | ||
param name="FORM.Scene"; | ||
param name="FORM.docType" default="true"; | ||
param name="FORM.entity" default="true"; | ||
param name="FORM.cfapplicationOverride" default="false"; | ||
|
||
if(FORM.Scene == 1) { | ||
this.xmlFeatures.externalGeneralEntities = true; | ||
} | ||
|
||
else if(FORM.Scene == 2) { | ||
this.xmlFeatures = { | ||
externalGeneralEntities: false, | ||
secure: true, | ||
disallowDoctypeDecl: false | ||
}; | ||
} | ||
|
||
else if(FORM.Scene == 3) { | ||
this.xmlFeatures = { | ||
externalGeneralEntities: false, | ||
secure: true, | ||
disallowDoctypeDecl: true | ||
}; | ||
switch (FORM.Scene){ | ||
case "externalGeneralEntities-True": | ||
this.xmlFeatures ={ | ||
"externalGeneralEntities": true, | ||
"disallowDoctypeDecl": false, | ||
"secure": false | ||
} | ||
break; | ||
case "externalGeneralEntities-False": | ||
this.xmlFeatures = { | ||
"externalGeneralEntities": false, | ||
"secure": true, | ||
"disallowDoctypeDecl": false | ||
}; | ||
break; | ||
case "disallowDoctypeDecl-True": | ||
this.xmlFeatures = { | ||
"externalGeneralEntities": false, | ||
"secure": true, | ||
"disallowDoctypeDecl": true | ||
}; | ||
break; | ||
case "invalidConfig-Secure": | ||
this.xmlFeatures = { | ||
"secure": "lucee" | ||
}; | ||
break; | ||
case "invalidConfig-Doctype": | ||
this.xmlFeatures = { | ||
"disallowDoctypeDecl": "lucee" | ||
}; | ||
break; | ||
case "invalidConfig-Entities": | ||
this.xmlFeatures = { | ||
"disallowDoctypeDecl": "lucee" | ||
}; | ||
break; | ||
case "all-secure": | ||
this.xmlFeatures = { | ||
"externalGeneralEntities": false, | ||
"secure": true, | ||
"disallowDoctypeDecl": true | ||
}; | ||
break; | ||
case "all-insecure": | ||
this.xmlFeatures = { | ||
"externalGeneralEntities": true, | ||
"secure": false, | ||
"disallowDoctypeDecl": false | ||
}; | ||
break; | ||
case "default": | ||
break; | ||
default: | ||
throw "unknown scene: #form.scene#"; | ||
break; | ||
} | ||
} |
Oops, something went wrong.