Beginner FriendlyFoundryNFT
100 EXP
View results
Submission Details
Severity: low
Invalid

Unrestricted Gas Usage in ```writeMessageInSharedSpace``` Function of Soulmate Contract

Summary

The writeMessageInSharedSpace function in the Soulmate contract lacks any gas limits or restrictions on the length or complexity of the input message. This vulnerability can be exploited by malicious actors to launch denial-of-service (DoS) attacks, consuming excessive gas and potentially disrupting network performance, transaction processing, and user experience.

Vulnerability Details

The function does not enforce any gas limits or resource constraints on the message string.

Attackers can exploit this by submitting messages with:

  1. Excessive length, exceeding the block gas limit and causing transaction failures.

  2. High computational complexity, requiring significant gas for processing and slowing down the network.

Impact

High gas usage can lead to network congestion, impacting transaction processing times and user experience for all applications on the blockchain.

Tools Used

Manual Review

Recommendations

Set a reasonable maximum gas limit for the writeMessageInSharedSpace function to prevent excessively expensive transactions.

Updates

Lead Judging Commences

0xnevi Lead Judge over 1 year ago
Submission Judgement Published
Invalidated
Reason: Other

Support

FAQs

Can't find an answer? Chat with us on Discord, Twitter or Linkedin.