CVE-2015-10038 (published 2023-01-11T19:15Z)

A vulnerability was found in nym3r0s pplv2. It has been declared as critical. Affected by this vulnerability is an unknown functionality. The manipulation leads to sql injection. The patch is named 28f8b0550104044da09f04659797487c59f85b00. It is recommended to apply a patch to fix this issue. The associated identifier of this vulnerability is VDB-218023.

CVSS v3 base score: 8.0, HIGH (CVSS:3.1/AV:A/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H)

Weakness information:
cwe_id: CWE-89
cwe_name: Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')
description: The product constructs all or part of an SQL command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended SQL command when it is sent to a downstream component. Without sufficient removal or quoting of SQL syntax in user-controllable inputs, the generated SQL query can cause those inputs to be interpreted as SQL instead of ordinary user data.
extended_description: 
            
            
         
         

Fix information:
repo_url: https://github.com/nym3r0s/pplv2
commit_details: repo_url: https://github.com/nym3r0s/pplv2
author: GokulSrinivas
author_date: 2015-01-22 12:46:38+05:30
msg: Added fix for SQL Injection
repository: repo_url: https://github.com/nym3r0s/pplv2
repo_name: nym3r0s/pplv2
description: PPL-14  Version2
repo_language: HTML
owner: nym3r0s
file_changes: filename: confirm11.php
change_type: ModificationType.MODIFY
diff: @@ -1,13 +1,13 @@
 <?php
 session_start();
 require './../includes/dbconfig.php';
-$user = $_SESSION['user'];
+$user = mysql_real_escape_string($_SESSION['user'])s;
 if(!isset($user))
 {
     header('Location: ./../login.php');
 }
 
-$idString = $_POST['c11'];
+$idString = mysql_real_escape_string($_POST['c11']);
 echo($idString."\n");
 $ids = explode(',',$idString);
 sort($ids);

programming_language: PHP
filename: index.php
change_type: ModificationType.ADD
diff: @@ -0,0 +1,3 @@
+<?php
+    header('Location: ./matchday.php');
+?>

programming_language: PHP
filename: matchday.php
change_type: ModificationType.MODIFY
diff: @@ -1,7 +1,7 @@
 <?php
 session_start();
 require './../includes/dbconfig.php';
-$user = $_SESSION['user'];
+$user = mysql_real_escape_string($_SESSION['user']);
 if(!isset($user))
 {
     header('Location: ./../login.php');

programming_language: PHP
filename: playerInfo.php
change_type: ModificationType.MODIFY
diff: @@ -4,8 +4,8 @@ require './../includes/dbconfig.php';
 
 //echo("done");
 
-$playerId = $_POST['req'];
-$user = $_SESSION['user'];
+$playerId = mysql_real_escape_string($_POST['req']);
+$user = mysql_real_escape_string($_SESSION['user']);
 
 if(!isset($user))
 {
@@ -72,7 +72,7 @@ echo('<div class="panel panel-primary" id="playerProfile">');
 
         echo('<div class="row_left"> <div><b>Country</b></div> <div><b>Player Role</b></div> <div><b>Matches</b></div> <div><b>Form</b></div> <div><b>Confidence</b></div> </div>');
 
-		echo('<div class="row_right"> <div>'.$playerCountry.'</div> <div>'.$playerType.'</div> <div>'.$playerMatches.'</div> <div>'.$playerForm.'</div><div>'.$playerConfidence.'</div></div>');
+        echo('<div class="row_right"> <div>'.$playerCountry.'</div> <div>'.$playerType.'</div> <div>'.$playerMatches.'</div> <div>'.$playerForm.'</div><div>'.$playerConfidence.'</div></div>');
 
 if($playerCaptain != ""){    echo('<div class="row"><b>Captain</b></div><br>'); }
         echo('</div>');

programming_language: PHP
filename: squadGen.php
change_type: ModificationType.MODIFY
diff: @@ -2,7 +2,7 @@
 session_start();
 require './../includes/dbconfig.php';
 
-$user = $_SESSION['user'];
+$user = mysql_real_escape_string($_SESSION['user']);
 
 
 if(!isset($user))

programming_language: PHP
filename: balance.php
change_type: ModificationType.MODIFY
diff: @@ -2,7 +2,7 @@
 session_start();
 require './../includes/dbconfig.php';
 
-$user = $_SESSION['user'];
+$user = mysql_real_escape_string($_SESSION['user']);
 
 
 if(!isset($user))

programming_language: PHP
filename: confirm16.php
change_type: ModificationType.MODIFY
diff: @@ -1,13 +1,13 @@
 <?php
 session_start();
 require './../includes/dbconfig.php';
-$user = $_SESSION['user'];
+$user = mysql_real_escape_string($_SESSION['user']);
 if(!isset($user))
 {
     header('Location: ./../login.php');
 }
 
-$idString = $_POST['c16'];
+$idString = mysql_real_escape_string($_POST['c16']);
 $ids = explode(',',$idString);
 sort($ids);
 

programming_language: PHP
filename: index.php
change_type: ModificationType.ADD
diff: @@ -0,0 +1,3 @@
+<?php
+    header('Location: ./transfers.php');
+?>

programming_language: PHP
filename: playerInfo.php
change_type: ModificationType.MODIFY
diff: @@ -4,8 +4,8 @@ require './../includes/dbconfig.php';
 
 //echo("done");
 
-$playerId = $_POST['req'];
-$user = $_SESSION['user'];
+$playerId = mysql_real_escape_string($_POST['req']);
+$user = mysql_real_escape_string($_SESSION['user']);
 
 if(!isset($user))
 {
@@ -72,7 +72,7 @@ echo('<div class="panel panel-primary" id="playerProfile">');
 
         echo('<div class="row_left"> <div><b>Country</b></div> <div><b>Player Role</b></div> <div><b>Matches</b></div> <div><b>Form</b></div> <div><b>Confidence</b></div> </div>');
 
-		echo('<div class="row_right"> <div>'.$playerCountry.'</div> <div>'.$playerType.'</div> <div>'.$playerMatches.'</div> <div>'.$playerForm.'</div><div>'.$playerConfidence.'</div></div>');
+        echo('<div class="row_right"> <div>'.$playerCountry.'</div> <div>'.$playerType.'</div> <div>'.$playerMatches.'</div> <div>'.$playerForm.'</div><div>'.$playerConfidence.'</div></div>');
 
 if($playerCaptain != ""){    echo('<div class="row"><b>Captain</b></div><br>'); }
         echo('</div>');

programming_language: PHP
filename: playersGen.php
change_type: ModificationType.MODIFY
diff: @@ -2,7 +2,7 @@
 session_start();
 require './../includes/dbconfig.php';
 
-$user = $_SESSION['user'];
+$user = mysql_real_escape_string($_SESSION['user']);
 
 
 if(!isset($user))

programming_language: PHP
filename: remainingTransfers.php
change_type: ModificationType.MODIFY
diff: @@ -1,7 +1,7 @@
 <?php
 session_start();
 require './../includes/dbconfig.php';
-$user = $_SESSION['user'];
+$user = mysql_real_escape_string($_SESSION['user']);
 if(!isset($user))
 {
     header('Location: ./../login.php');

programming_language: PHP
filename: transfers.php
change_type: ModificationType.MODIFY
diff: @@ -1,7 +1,7 @@
 <?php
 session_start();
 require './../includes/dbconfig.php';
-$user = $_SESSION['user'];
+$user = mysql_real_escape_string($_SESSION['user']);
 if(!isset($user))
 {
     header('Location: ./../login.php');
@@ -50,11 +50,11 @@ if(!isset($user))
     </nav>
 
 <!-- Nav  Ends here-->
-	<div class="transferDetails">
-		<div id="playerBalance"></div>
-		<div id="transferBalance"></div>
-	</div>
-		
+    <div class="transferDetails">
+        <div id="playerBalance"></div>
+        <div id="transferBalance"></div>
+    </div>
+
     <div id="switches">
         <div class="btn-group" role="group" aria-label="...">
             <div class="btn-group" role="group">

programming_language: HTML
filename: userGen.php
change_type: ModificationType.MODIFY
diff: @@ -2,7 +2,7 @@
 session_start();
 require './../includes/dbconfig.php';
 
-$user = $_SESSION['user'];
+$user = mysql_real_escape_string($_SESSION['user']);
 
 
 if(!isset($user))

programming_language: PHP