shardeum / shardus-core

Other
10 stars 2 forks source link

SEC-338: Limit the proxy handler to only allow a specific route. #260

Open mgthuramoemyint opened 2 weeks ago

mgthuramoemyint commented 2 weeks ago

Limiting handler to only allow a specific route.

github-actions[bot] commented 2 weeks ago

PR Reviewer Guide 🔍

⏱️ Estimated effort to review: 2 🔵🔵⚪⚪⚪
🧪 No relevant tests
🔒 No security concerns identified
⚡ Key issues to review

Error Handling
The error message `proxy handler route is not get_trie_hashes` at line 274 does not specify what the expected route should be, which might confuse developers or operators when debugging. Consider enhancing the error message to include both the expected and the received route.