Link to home
Start Free TrialLog in
Avatar of Dan Schimo
Dan SchimoFlag for United States of America

asked on

Address Hostheader attack issue security fix in ColdFusion.

Experts,

How to Address Host Header Attack in
ours is a coldfusion site.
Avatar of _agx_
_agx_
Flag of United States of America image

The primary advice in the article is  "don’t trust the host header.", like how you never trust URL or FORM variables.  Since it's client supplied, don't construct code that uses the raw host header like this:    

<form method="post" action="#CGI.HTTP_HOST#/somescript.cfm?param1=aaa&param2=bbbb" > ... OR
<script src="http://#CGI.HTTP_HOST#/script.js"> ... OR
<a href='http://#getHttpRequestData().headers["Host"]#/resetpassword.cfm?param1=xxxxxxx'>Reset</a>

Open in new window


If you're using IIS, this thread also suggests using bindings to prevent the requests from reaching the web site.  Sounds aimilar to the whitelist concept mentioned in the article.
Avatar of Dan Schimo

ASKER

yes, we are using IIS.
Thanks _agx_ . This issue definitely required a seasoned Programmer to respond. Could you point me to bindings in IIS? I need to forward it to my admin guys.
ASKER CERTIFIED SOLUTION
Avatar of _agx_
_agx_
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial