nebPay.js
nebPay.js copied to clipboard
nebPay转账金额小数位超越边界后溢出
钱包显示的转账金额是0.03333....但是实际上却是超大额的转账,存在风险。
如果把转账金额是填为0.00000000000000000022,那么可以作为有效的诱骗攻击,导致用户转账26w+NAS,存在巨大的风险。
如果把转账金额是填为0.000000000000000000022,将导致用户转账24178 NAS,对大户造成很大的威胁。
@dabdevelop Very helpful information, we will fix it today
高危漏洞,奖励奖励!
The minimum unit of value should be wei (1nas = 1^18 wei). We will throw an error when the minimum value of wei is not an integer now :) Thanks for pointing it out