AGENT SKILL

webapp-logic-business

Webapp Logic Business.

License 许可
MIT
最近更新
2026-09-01
Stars
★ 0
Forks
0

01 前言 Front Matter

name
webapp-logic-business
domain
cybersecurity
description
Webapp Logic Business.

02 资源文件 1

03 SKILL.md 正文

--| | Server-side price calculation | Total computed server-side | Client-submitted total accepted | | Coupon single use | One coupon per order | Same coupon applied 5 times | | Negative quantity check | Quantity >= 1 | Quantity -1 accepted (credit issued) | | Race condition on transfer | Balance checked atomically | Dual transfer exceeded balance |

Impact

  • Financial loss: orders processed at attacker-controlled prices
  • Inventory loss: products shipped for $0.01
  • Reward abuse: unlimited referral credits via self-referral
  • Double-spending via race condition on transfers

Recommendation

  1. Perform all price calculations server-side; never trust client-submitted totals
  2. Implement server-side validation for quantity (positive integers only)
  3. Use database-level locks or atomic transactions for financial operations
  4. Implement idempotency keys to prevent duplicate transaction processing
  5. Rate-limit and log coupon applications, referral submissions, and transfers

04 同仓库更多 Skills