aboutsummaryrefslogtreecommitdiffstats
path: root/routes
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2026-05-17 23:21:39 -0700
committerAdam Soltys <[email protected]>2026-05-17 23:21:39 -0700
commit3c4d0b6914bbc7ecf49312a264d55af3c2e2d7a6 (patch)
tree6da1730f02c8acb919841b62cff82cfb7d8c5bea /routes
parent206aacd410dbafc4c7313bdd4ea234180373ddc2 (diff)
downloadcoinos-server-3c4d0b6914bbc7ecf49312a264d55af3c2e2d7a6.tar.gz
coinos-server-3c4d0b6914bbc7ecf49312a264d55af3c2e2d7a6.zip
remove /gateway endpoint
Unauthenticated arbitrary db.set abuse vector. Exploited to inflate user balances and override safety controls (bitcoin:limit, limit, hardfreeze, freeze) in real time, leading to a hot-wallet drain. Route and handler both fully removed. Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
Diffstat (limited to 'routes')
-rw-r--r--routes/payments.ts9
1 files changed, 0 insertions, 9 deletions
diff --git a/routes/payments.ts b/routes/payments.ts
index 1845512c..43c098b6 100644
--- a/routes/payments.ts
+++ b/routes/payments.ts
@@ -626,15 +626,6 @@ export default {
}
},
- async gateway(req, res) {
- const {
- body: { short_channel_id, webhook },
- } = req;
-
- await s(short_channel_id, webhook);
- res.send({ ok: true });
- },
-
async replace(req, res) {
const {
body: { id },