Last active
December 21, 2015 12:58
-
-
Save JamoCA/6309128 to your computer and use it in GitHub Desktop.
The Project Honey Pot script for ColdFusion was timing out + failing with a "Element EMAIL is undefined in RETURNVARS." error on line 239. (I added a 5 second timeout & 403 error if a "408 Request Timeout" is received.)
This file contains hidden or 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
| <!--- Line 129, change this ---> | |
| <cfhttp url="http://#REQUEST_HOST##REQUEST_SCRIPT#" method="POST" port="#REQUEST_PORT#"> | |
| <!--- to this (if it takes more than 5 seconds, we will abort) ---> | |
| <cfhttp url="http://#REQUEST_HOST##REQUEST_SCRIPT#" method="POST" port="#REQUEST_PORT#" timeout="5"> | |
| <!--- After CFHTTP call (around line 144), add this ---> | |
| <CFIF Findnocase("408", CFHTTP.StatusCode)> | |
| <cfcontent type="text/html; charset=UTF-8"> | |
| <cfheader statuscode="403" statustext="Forbidden"> | |
| <CFOUTPUT><h1>Forbidden</h1></CFOUTPUT> | |
| <CFABORT> | |
| </CFIF> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment