The URIs are currently formatted with a custom scheme (ar://), which may not be recognized or supported by the intended recipients or systems.
The vulnerability arises from the use of custom URL schemes (ar://) for storing and accessing data. Custom URL schemes are not standardized across platforms and applications, leading to potential compatibility issues. This means that the URIs may not be correctly interpreted or handled by the intended recipients or systems, resulting in failed data retrieval or access.
The impact of using invalid URIs includes:
Data Accessibility Issues: Recipients may not be able to access the data stored at these URIs, leading to incomplete or incorrect data retrieval.
Compatibility Problems: The use of custom URL schemes may cause compatibility issues across different platforms and applications, limiting the reach and usability of the data.
Hardhat
To address the identified issue and ensure the URIs are valid and accessible, the following recommendation is made:
Transition to IPFS: Utilize IPFS for storing and accessing data. IPFS is a distributed file system that allows for permanent and decentralized storage of data. By storing the data on IPFS, you can ensure that it is accessible through a standard and widely supported protocol, improving compatibility and reliability.
Storing Data on IPFS: Convert the data to be stored into a format compatible with IPFS (e.g., JSON, text files). Use the IPFS API or CLI to add the data to IPFS, which will return a unique hash for the data.
Accessing Data via IPFS: When retrieving the data, use the IPFS hash to fetch the data from the IPFS network. This ensures that the data can be accessed reliably, regardless of the recipient's platform or application.
By implementing these recommendations, the smart contract can significantly improve the validity and accessibility of the URIs, ensuring that the data can be effectively stored and retrieved in a secure and reliable manner.
The contest is live. Earn rewards by submitting a finding.
This is your time to appeal against judgements on your submissions.
Appeals are being carefully reviewed by our judges.