Well, no point in highlighting a security flaw without fixing it. There is already a cubecart function for protecting against dodgy user input data called treatGet();
The simplest fix therefore that I can come up with off the top of my head is to add:
PHP Code:
foreach($_POST as $key=>$value) {
$_POST[$key] = treatGet($value);
}
to the top of /includes/content/profile.inc.php and /includes/content/reg.inc.php
I've just made this up no, hence no testing of it at all - there's my warning. 
I am using version 3.0.7-pl1, so the problem may have been fixed in later versions.
Bookmarks