PhoenixCMS 3.0 Articles.CFM - Possible SQL Vulnerability FIX.

Sledmore

Chaturbate Livestreamer
Staff member
FindRetros Moderator
Jul 24, 2010
5,195
3,906
Hey guys,

Well, I really like PhoenixCMS 3.0 and I use it now cause of XaddoUSA, and we got told there were an SQL injection exploit. And I've asked Aaron himself if it would work to run a command he said no but this was a day later, I fixed this earlier to set the error to only allow the format of numeric.

I'm no ColdFusion expert, but this should work got the patches from Adobe.

Anyways a simple fix, find the following:

PHP:
<cfquery name="ThisStory" datasource="#DSN#">
		SELECT *
		FROM cms_news
		WHERE id = #url.story#
		LIMIT 1
	</cfquery>

Replace with:

PHP:
	<cfquery name="ThisStory" datasource="#DSN#">
		SELECT *
		FROM cms_news
		WHERE id =<cfqueryparam value="#url.story#" cfsqltype="cf_sql_numeric">
		LIMIT 1
	</cfquery>

I know it's a really simple fix, but they shouldn't be able to run a command anyway, but better to be safe huh ;)? - thank me if you want to xD.
 

Kryptos

prjRev.com
Jul 21, 2010
2,205
1,252
I'm no cold fusion expert, but if that was PHP then it would be exploitable from my knowledge,
Thanks for this!
 

Sledmore

Chaturbate Livestreamer
Staff member
FindRetros Moderator
Jul 24, 2010
5,195
3,906
Yeah, this should fix it, but apparently, you couldn't run a command on it anyhow, but better to be safe. ;P.
 

Users who are viewing this thread

Top