CVE-2014-125027 (PHP, published 2022-12-31T16:15Z)
Description: value: A vulnerability has been found in Yuna Scatari TBDev up to 2.1.17 and classified as problematic. Affected by this vulnerability is the function get_user_icons of the file usersearch.php. The manipulation of the argument n/r/r2/em/ip/co/ma/d/d2/ul/ul2/ls/ls2/dl/dl2 leads to cross site scripting. The attack can be launched remotely. Upgrading to version 2.1.18 is able to address this issue. The patch is named 0ba3fd4be29dd48fa4455c236a9403b3149a4fd4. It is recommended to upgrade the affected component. The associated identifier of this vulnerability is VDB-217147.
Severity: nan (CVSS v3 base score: 6.1)
Weakness: CWE-79 \u2014 Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
Repository: https://github.com/yunasc/tbdev
Files changed:
usersearch.php
Commit message: [SECURITY] usersearch.php multiple XSS vulnerability fixes


Vulnerable code:
  <td<?=$_GET['n']?$highlight:""?>><input name="n" type="text" value="<?=$_GET['n']?>" size=35></td>
    <input name="r" type="text" value="<?=$_GET['r']?>" size="5" maxlength="4">
    <input name="r2" type="text" value="<?=$_GET['r2']?>" size="5" maxlength="4"></td>
  <td<?=$_GET['em']?$highlight:""?>><input name="em" type="text" value="<?=$_GET['em']?>" size="35"></td>
  <td<?=$_GET['ip']?$highlight:""?>><input name="ip" type="text" value="<?=$_GET['ip']?>" maxlength="17"></td>
  <td<?=$_GET['co']?$highlight:""?>><input name="co" type="text" value="<?=$_GET['co']?>" size="35"></td>
  <td<?=$_GET['ma']?$highlight:""?>><input name="ma" type="text" value="<?=$_GET['ma']?>" maxlength="17"></td>
    <input name="d" type="text" value="<?=$_GET['d']?>" size="12" maxlength="10">
    <input name="d2" type="text" value="<?=$_GET['d2']?>" size="12" maxlength="10"></td>
    <input name="ul" type="text" id="ul" size="8" maxlength="7" value="<?=$_GET['ul']?>">
    <input name="ul2" type="text" id="ul2" size="8" maxlength="7" value="<?=$_GET['ul2']?>"></td>
  <input name="ls" type="text" value="<?=$_GET['ls']?>" size="12" maxlength="10">
  <input name="ls2" type="text" value="<?=$_GET['ls2']?>" size="12" maxlength="10"></td>
    <input name="dl" type="text" id="dl" size="8" maxlength="7" value="<?=$_GET['dl']?>">
    <input name="dl2" type="text" id="dl2" size="8" maxlength="7" value="<?=$_GET['dl2']?>"></td>
        	stdmsg($tracker_lang['error'], "Íåâåðíàÿ ìàêñà ïîäñåòè.");
				stdmsg($tracker_lang['error'], "Íåâåðíàÿ ìàêñà ïîäñåòè.");

Fixed code:
  <td<?=$_GET['n']?$highlight:""?>><input name="n" type="text" value="<?=htmlspecialchars_uni($_GET['n'])?>" size=35></td>
    <input name="r" type="text" value="<?=floatval($_GET['r'])?>" size="5" maxlength="4">
    <input name="r2" type="text" value="<?=floatval($_GET['r2'])?>" size="5" maxlength="4"></td>
  <td<?=$_GET['em']?$highlight:""?>><input name="em" type="text" value="<?=htmlspecialchars_uni($_GET['em'])?>" size="35"></td>
  <td<?=$_GET['ip']?$highlight:""?>><input name="ip" type="text" value="<?=htmlspecialchars_uni($_GET['ip'])?>" maxlength="17"></td>
  <td<?=$_GET['co']?$highlight:""?>><input name="co" type="text" value="<?=htmlspecialchars_uni($_GET['co'])?>" size="35"></td>
  <td<?=$_GET['ma']?$highlight:""?>><input name="ma" type="text" value="<?=htmlspecialchars_uni($_GET['ma'])?>" maxlength="17"></td>
    <input name="d" type="text" value="<?=htmlspecialchars_uni($_GET['d'])?>" size="12" maxlength="10">
    <input name="d2" type="text" value="<?=htmlspecialchars_uni($_GET['d2'])?>" size="12" maxlength="10"></td>
    <input name="ul" type="text" id="ul" size="8" maxlength="7" value="<?=intval($_GET['ul'])?>">
    <input name="ul2" type="text" id="ul2" size="8" maxlength="7" value="<?=intval($_GET['ul2'])?>"></td>
  <input name="ls" type="text" value="<?=intval($_GET['ls'])?>" size="12" maxlength="10">
  <input name="ls2" type="text" value="<?=intval($_GET['ls2'])?>" size="12" maxlength="10"></td>
    <input name="dl" type="text" id="dl" size="8" maxlength="7" value="<?=intval($_GET['dl'])?>">
    <input name="dl2" type="text" id="dl2" size="8" maxlength="7" value="<?=intval($_GET['dl2'])?>"></td>
        	stdmsg($tracker_lang['error'], "Íåâåðíàÿ ìàñêà ïîäñåòè.");
				stdmsg($tracker_lang['error'], "Íåâåðíàÿ ìàñêà ïîäñåòè.");