close ad
Databridge V2 with MySQLi support IS Now Available!
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues


McAfee errors, Database Disclosure, Cross Site Scripting

Thread began 2/14/2011 6:52 am by timsemailaddress275998 | Last modified 9/07/2011 6:43 am by Jason Byrnes | 1255 views | 3 replies |


McAfee errors, Database Disclosure, Cross Site Scripting

McAfee is telling me I have the following errors:

MySQL Database Error Disclosure Vulnerability
Web Application Cross Site Scripting

Does anybody here know how to resolve these issues?

Thanks for the help,


Sign in to reply to this post

Jason ByrnesWebAssist

Most Dreamweaver recordsets include an "or die(mysql_error())" statement, for example:

$WADAproducts = mysql_query($query_limit_WADAproducts, $test) or die(mysql_error());

remove the "or die(mysql_error())" statemtne frpom the recordsets to resolve the database disclosure errors.

For the cross site scripting errors, edit the form action code for the add to cart buttons:

 action="<?php echo $_SERVER["PHP_SELF"]; ?><?php echo (isset($_SERVER["QUERY_STRING"]) && $_SERVER["QUERY_STRING"] != "")?"?".$_SERVER["QUERY_STRING"]:""?>"


 action="<?php echo $_SERVER["PHP_SELF"]; ?><?php echo (isset($_SERVER["QUERY_STRING"]) && $_SERVER["QUERY_STRING"] != "")?"?".str_replace("<","&lt;",str_replace(">","&gt;",str_replace('"',"&quot;",$_SERVER["QUERY_STRING"]))):""?>"

if you continue to have issues, please post back the report from McAffee and a copy of the page.

Sign in to reply to this post


Web Application Cross Site Scripting

Changed login.php form action to
"<form action="<?php echo $_SERVER["PHP_SELF"]; ?><?php echo (isset($_SERVER["QUERY_STRING"]) && $_SERVER["QUERY_STRING"] != "")?"?".str_replace("<","&lt;",str_replace(">","&gt;",str_replace('"',"&quot;",$_SERVER["QUERY_STRING"]))):""; ?>" method="post" name="WAATKLogInForm" id="WAATKLogInForm">"

McAfee says this page has the vulnerbility.

Vulnerability Detail
Vulnerability Web Application Cross Site Scripting
Port 443/tcp
Scan Date 06-SEP-2011 23:36

Protocol https Port 443 Read Timeout 10000 Method POST
Edit Demo
Path /shop/adm3/login.php
Body username=>"></title></iframe></script></form></td></tr><br><iFraMe src

Sign in to reply to this post

Jason ByrnesWebAssist

I have created a support ticket so we can look into this issue further.

To view and edit your support ticket, please log into your support history:

If anyone else is experiencing this same issue, please append to this thread.

Sign in to reply to this post

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question





Ease of use


security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...