alipay-aipay
Audited by Socket on Nov 19, 2026
2 alerts found:
AnomalySecurityThis is a Python Flask payment-gateway integration example that creates persisted pending orders, verifies client-supplied payment proofs with Alipay, checks order and amount details, and confirms fulfillment before returning a resource. The code contains no apparent malware, credential harvesting, or suspicious third-party network destinations; the only configured external gateway is `https://openapi-sandbox[.]dl[.]alipaydev[.]com/gateway.do` by default. The main security concern is running the built-in Flask server with `debug=True` on `0.0.0.0`, which is unsafe if exposed beyond isolated development; error details are also returned to clients. Severity is high if that debug server is exposed in deployment, otherwise this is a moderate deployment-hardening concern.
The code is an installation and refresh helper for Alipay CLI. It does not provide clear evidence of intentionally malicious behavior, but it performs a high-impact supply-chain operation by executing an unverified remote shell script and disabling installer verification. The principal risk is compromise of the download endpoint, DNS/TLS infrastructure, or the remote script, which could result in arbitrary code execution with the user's privileges. Review of the fetched installer and use of a pinned, signed, or checksum-verified artifact is recommended.