{"items":[{"id":"NVI-00006389","kind":"vulnerability","title":"WeChat Pay callback signature verification bypassed when Host header is localhost","revision":2,"unknowns":["Customer inventory, deployment, reachability and exploitation have not been inspected.","NVD lastModified does not establish freshness of every associated CPE record."],"lifecycle":"active","identifiers":["GHSA-q938-ghwv-8gvc","CVE-2026-33661"],"plain_summary":"OSV carries this publisher advisory for yansongda/pay. This is an aggregated source copy; consult the original publisher and compare update dates.","review_status":"source_listed","control_topics":[],"public_actions":[{"summary":"The original advisory lists fixed boundaries 3.7.20 for yansongda/pay. Confirm the publisher’s latest guidance.","source_ids":["sr-b2b8d145af17e5ced91a294b04befe09"],"action_type":"vendor_patch","limitations":"Confirm current vendor support, compatibility and deployment evidence. This report has not tested a fix in your system.","current_supported_target":null},{"summary":"Identify the exact component and deployed version, examine the linked publisher’s conditions, and retain evidence of any mitigation.","source_ids":["sr-41d01c4d957a6d6ac1d1b680c06aaa3f"],"action_type":"investigate","limitations":"Confirm current vendor support, compatibility and deployment evidence. This report has not tested a fix in your system.","current_supported_target":null}],"schema_version":"1.1.0","source_metrics":[{"kind":"CVSS","as_of":"2026-06-17T10:37:52.897Z","value":"8.6 HIGH (3.1)","meaning":"security-advisories@github.com severity; no combined Null risk score.","source_id":"sr-41d01c4d957a6d6ac1d1b680c06aaa3f"},{"kind":"CVSS","as_of":"2026-06-17T10:37:52.897Z","value":"7.5 HIGH (3.1)","meaning":"nvd@nist.gov severity; no combined Null risk score.","source_id":"sr-41d01c4d957a6d6ac1d1b680c06aaa3f"}],"why_it_matters":"Published affected context helps an owner decide what evidence to gather. This report has not examined your application.","related_sources":[{"id":"sr-b2b8d145af17e5ced91a294b04befe09","url":"https://github.com/advisories/GHSA-q938-ghwv-8gvc","basis":"vendor_advisory","notes":"GitHub-origin advisory, CC-BY-4.0; OSV is an aggregate copy, not independent corroboration.","title":"GHSA-q938-ghwv-8gvc","publisher":"GitHub Advisory Database via OSV","observed_at":"2026-10-31T21:42:31.000Z"},{"id":"sr-41d01c4d957a6d6ac1d1b680c06aaa3f","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-33661","basis":"official_catalog","notes":"This product uses data from the NVD API but is not endorsed or certified by the NVD.","title":"CVE-2026-33661","publisher":"NIST National Vulnerability Database","observed_at":"2026-11-01T07:22:50.140Z"}],"affected_context":[{"certainty":"source_listed","source_ids":["sr-b2b8d145af17e5ced91a294b04befe09"],"technology":"yansongda/pay","known_exclusions":[],"conditions_summary":"## Summary\n\nThe `verify_wechat_sign()` function in `src/Functions.php` unconditionally **skips all signature verification** when the PSR-7 request reports `localhost` as the host. An attacker can exploit this by sending a crafted HTTP request to the WeChat Pay callback endpoint with a `Host: localhost` header, bypassing the RSA signature check entirely.\n\nThis allows forging fake WeChat Pay payment success notifications, potentially causing applications to mark orders as paid without actual payment.\n\n## Vulnerable Code\n\n**`src/Functions.php` lines 243-246:**\n```php\nfunction verify_wechat_sign(ResponseInterface|ServerRequestInterface $message, array $params): void\n{\n    // BYPASS: Returns without any signature check if Host header is localhost\n    if ($message instanceof ServerRequestInterface && 'localhost' === $message->getUri()->getHost()) {\n        return;  // No signature verified!\n    }\n\n    // ... openssl_verify() only reached when Host != localhost\n    $wechatSerial = $message->getHeaderLine('Wechatpay-Serial');\n    $sign = $message->getHeaderLine('Wechatpay-Signature');\n    $result = 1 === openssl_verify($content, base64_decode($sign), $public, 'sha256WithRSAEncryption');\n}\n","public_affected_ranges":["ECOSYSTEM: introduced 0; fixed 3.7.20"]}],"null_published_at":"2026-11-01T14:34:07.636Z","source_updated_at":"2026-03-27T22:17:43.058Z","source_disclosed_at":"2026-03-25T19:30:09.000Z","is_synthetic_fixture":false,"null_last_reviewed_at":null,"public_change_summary":"Source facts changed; compare the preserved prior revision.","null_first_observed_at":"2026-10-31T21:42:31.000Z"},{"id":"NVI-00006389","kind":"vulnerability","title":"WeChat Pay callback signature verification bypassed when Host header is localhost","revision":1,"unknowns":["Customer inventory, deployment, reachability and exploitation have not been inspected."],"lifecycle":"active","identifiers":["GHSA-q938-ghwv-8gvc","CVE-2026-33661"],"plain_summary":"OSV carries this publisher advisory for yansongda/pay. This is an aggregated source copy; consult the original publisher and compare update dates.","review_status":"source_listed","control_topics":[],"public_actions":[{"summary":"The original advisory lists fixed boundaries 3.7.20 for yansongda/pay. Confirm the publisher’s latest guidance.","source_ids":["sr-b2b8d145af17e5ced91a294b04befe09"],"action_type":"vendor_patch","limitations":"Confirm current vendor support, compatibility and deployment evidence. This report has not tested a fix in your system.","current_supported_target":null}],"schema_version":"1.1.0","source_metrics":[],"why_it_matters":"Published affected context helps an owner decide what evidence to gather. This report has not examined your application.","related_sources":[{"id":"sr-b2b8d145af17e5ced91a294b04befe09","url":"https://github.com/advisories/GHSA-q938-ghwv-8gvc","basis":"vendor_advisory","notes":"GitHub-origin advisory, CC-BY-4.0; OSV is an aggregate copy, not independent corroboration.","title":"GHSA-q938-ghwv-8gvc","publisher":"GitHub Advisory Database via OSV","observed_at":"2026-10-31T21:42:31.000Z"}],"affected_context":[{"certainty":"source_listed","source_ids":["sr-b2b8d145af17e5ced91a294b04befe09"],"technology":"yansongda/pay","known_exclusions":[],"conditions_summary":"## Summary\n\nThe `verify_wechat_sign()` function in `src/Functions.php` unconditionally **skips all signature verification** when the PSR-7 request reports `localhost` as the host. An attacker can exploit this by sending a crafted HTTP request to the WeChat Pay callback endpoint with a `Host: localhost` header, bypassing the RSA signature check entirely.\n\nThis allows forging fake WeChat Pay payment success notifications, potentially causing applications to mark orders as paid without actual payment.\n\n## Vulnerable Code\n\n**`src/Functions.php` lines 243-246:**\n```php\nfunction verify_wechat_sign(ResponseInterface|ServerRequestInterface $message, array $params): void\n{\n    // BYPASS: Returns without any signature check if Host header is localhost\n    if ($message instanceof ServerRequestInterface && 'localhost' === $message->getUri()->getHost()) {\n        return;  // No signature verified!\n    }\n\n    // ... openssl_verify() only reached when Host != localhost\n    $wechatSerial = $message->getHeaderLine('Wechatpay-Serial');\n    $sign = $message->getHeaderLine('Wechatpay-Signature');\n    $result = 1 === openssl_verify($content, base64_decode($sign), $public, 'sha256WithRSAEncryption');\n}\n","public_affected_ranges":["ECOSYSTEM: introduced 0; fixed 3.7.20"]}],"null_published_at":"2026-10-31T22:13:10.054Z","source_updated_at":"2026-03-27T22:17:43.058Z","source_disclosed_at":"2026-03-25T19:30:09.000Z","is_synthetic_fixture":false,"null_last_reviewed_at":null,"public_change_summary":"First indexed by Null; source disclosure date is shown separately.","null_first_observed_at":"2026-10-31T21:42:31.000Z"}],"next_cursor":null,"snapshot_revision":"42594"}