Headline
CVE-2015-10041: Fix SQL injection in comments · Dovgalyuk/AIBattle-disabled-@e3aa4d0
** UNSUPPPORTED WHEN ASSIGNED **** UNSUPPORTED WHEN ASSIGNED ** A vulnerability classified as critical has been found in Dovgalyuk AIBattle. Affected is the function sendComments of the file site/procedures.php. The manipulation of the argument text leads to sql injection. The name of the patch is e3aa4d0900167641d41cbccf53909229f00381c9. It is recommended to apply a patch to fix this issue. The identifier of this vulnerability is VDB-218304. NOTE: This vulnerability only affects products that are no longer supported by the maintainer.
@@ -1811,6 +1811,7 @@ function sendComments($newsId, $text)
{
$newsId = intval($newsId);
$currentUserId = intval(getActiveUserID());
$text = mysqli_real_escape_string($link, $text);
if ($currentUserId != -1)
{
$query = mysqli_query($link, "INSERT INTO newsComments SET news = $newsId, user = $currentUserId, text = '$text’, date = NOW()");