No Rate Limiting or Amount Validation - Spam & Economic Exploits #3
Loading…
x
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
The Orangemart plugin has no rate limiting or maximum amount validation, allowing users to spam commands and enter astronomical purchase amounts, potentially causing economic exploits, server performance issues, and excessive API calls to the LNBits node.
Root Cause Analysis
Affected Commands - No Validation
1. CmdBuyCurrency() - Unlimited Amounts (Lines ~560-590)
2. CmdSendCurrency() - Unlimited Sends (Lines ~300-350)
3. CmdBuyVip() - Spam Vulnerable (Lines ~600-630)
Potential Exploits & Issues
1. Economic Exploits
2. Lightning Network Spam
3. Server Performance Issues
4. Integer Overflow Vulnerabilities
Impact
Steps to Reproduce
Exploit 1: Astronomical Amounts
Exploit 2: Command Spam
Exploit 3: Integer Overflow
Proposed Fix
Solution 1: Add Maximum Amount Limits
Solution 2: Add Rate Limiting System
Solution 3: Pending Invoice Limits
Required Configuration Updates
Add to
LoadDefaultConfig()
:Required Language Additions
Recommended Limits
Environment
Severity
🟠 Medium-High - Economic exploits and potential DoS vectors
Additional Notes
Without these limits, malicious players could:
The limits should be configurable so admins can adjust based on their economic model and server capacity.
Fixed on 0.4.0