close ad
WARNING: Do Not Install the DREAMWEAVER CC 2017 or 2018 Update »
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

McAfee errors, Database Disclosure, Cross Site Scripting

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

timsemailaddress275998

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,

Tim

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:

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




to:

php:
 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

timsemailaddress275998

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
Headers Referer=https%3A%2F%2Fwww.domain.com%2Fshop%2Fadm3%2Flogin.php
Content-Type=application%2Fx-www-form-urlencoded
Body username=>"></title></iframe></script></form></td></tr><br><iFraMe src
userpassword=0
remembermeoption=1
autologinoption=1
LogIn.x=0
LogIn.y=0

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:
supporthistory.php

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

Content

rating

Layout

rating

Ease of use

rating

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...