Reject negative Stellar fees and prevent Binance WalletConnect HTLT/Send message confusion - #4796
Reject negative Stellar fees and prevent Binance WalletConnect HTLT/Send message confusion#4796nikhil-gupta-tw wants to merge 3 commits into
Conversation
…s to prevent untagged serde ambiguity
Summary by OctaneNew ContractsNo new contracts were added. Updated Contracts
🔗 Commit Hash: 5f69547 |
Binary size comparison➡️ aarch64-apple-ios: - 14.31 MB
+ 14.32 MB +6 KB➡️ aarch64-apple-ios-sim: - 14.32 MB
+ 14.32 MB +5 KB➡️ aarch64-linux-android: - 18.73 MB
+ 18.74 MB +12 KB➡️ armv7-linux-androideabi: - 16.17 MB
+ 16.18 MB +11 KB➡️ wasm32-unknown-emscripten: - 13.66 MB
+ 13.67 MB +7 KB |
Overview
Detailed findings
|
|
Thanks for considering this. I'm an open source developer maintaining 100+ projects on GitHub (bots, EAs, security tools) and I'm ready to help implement or test these features. My wallet for any bounty or grant: 0x2fd73626714d9e37ea464109f8ecea2ca5401062 (Base USDC). |
|
Thank you for reviewing this feature request. |
|
For context on my background, some of my related open-source projects can be found at https://github.com/BAKOME-Hub. |
This pull request introduces stricter data validation for several Binance transaction message structs in Rust and adds input validation to the Stellar signing logic in C++. The main goal is to prevent deserialization of unexpected fields and ensure input values are within valid ranges.
Rust: Struct Validation Improvements
#[serde(deny_unknown_fields)]to the following structs to ensure that only known fields are accepted during deserialization, improving data integrity and error detection:HTLTOrder(htlt_order.rs)DepositHTLTOrder(htlt_order.rs)ClaimHTLTOrder(htlt_order.rs)RefundHTLTOrder(htlt_order.rs)SendOrder(send_order.rs)C++: Input Validation
Signer::encodeto throw an exception if thefeefield is negative, preventing invalid transaction signing requests (Signer.cpp)