mirror of
https://github.com/LBRYFoundation/pool.git
synced 2025-09-20 18:09:54 +00:00
security: protect XSS seekers from their own hacks
This commit is contained in:
parent
60fb627ad9
commit
e97ea63c61
3 changed files with 10 additions and 0 deletions
|
@ -13,6 +13,9 @@ $this->widget('UniForm');
|
|||
|
||||
$address = getparam('address');
|
||||
if($address == 0) $address = '';
|
||||
if (!empty($address) && preg_match('/[^A-Za-z0-9]/', $address)) {
|
||||
die;
|
||||
}
|
||||
|
||||
echo <<<end
|
||||
|
||||
|
|
|
@ -14,6 +14,10 @@ foreach($raw_recents as $addr) {
|
|||
}
|
||||
|
||||
$address = getparam('address');
|
||||
if (!empty($address) && preg_match('/[^A-Za-z0-9]/', $address)) {
|
||||
// Just to make happy XSS seekers who can hack their own browser html...
|
||||
die;
|
||||
}
|
||||
|
||||
$drop_address = getparam('drop');
|
||||
if (!empty($drop_address)) {
|
||||
|
|
|
@ -10,6 +10,9 @@ JavascriptFile("/extensions/jqplot/plugins/jqplot.highlighter.js");
|
|||
$height = '240px';
|
||||
|
||||
$wallet = user()->getState('yaamp-wallet');
|
||||
if (!empty($wallet) && preg_match('/[^A-Za-z0-9]/', $wallet)) {
|
||||
die;
|
||||
}
|
||||
$user = getuserparam($wallet);
|
||||
|
||||
$algo_unit = 'Mh';
|
||||
|
|
Loading…
Add table
Reference in a new issue