Lack of delete or compromised functionality for attestations can be exploited
Summary
Unlike the delete address and compromised address functionalities for addresses, attestations cannot be deleted or set as compromised, this can be exploited if an external attested account of a user has been compromised/hacked , it will still be attached to the users profile and malicious activities done through that account will still be linked to the user profile and will destroy the reputation of the user.
Root Cause
In 'EthosProfile.sol' there are explicit methods in which if an address is compromised the user can delete the address and mark it as compromised:
Repo Link
But in 'EthosAttestation.sol' there is no method to delete or mark an attestation compromised. This can be exploited if an external attested account of a user has been compromised/hacked.
Impact
The compromised external account of the user will still be linked to the user profile and malicious activities through that account will still be linked to the user profile and this will destroy the reputation and credibility score of the user.
Mitigation
Implement proper deleteAttestation function that will delete the attestation from the user profile and mark it as compromised.
Proud Frost Alligator
Medium
Lack of delete or compromised functionality for attestations can be exploited
Summary
Unlike the delete address and compromised address functionalities for addresses, attestations cannot be deleted or set as compromised, this can be exploited if an external attested account of a user has been compromised/hacked , it will still be attached to the users profile and malicious activities done through that account will still be linked to the user profile and will destroy the reputation of the user.
Root Cause
In 'EthosProfile.sol' there are explicit methods in which if an address is compromised the user can delete the address and mark it as compromised:
Repo Link But in 'EthosAttestation.sol' there is no method to delete or mark an attestation compromised. This can be exploited if an external attested account of a user has been compromised/hacked.
Impact
The compromised external account of the user will still be linked to the user profile and malicious activities through that account will still be linked to the user profile and this will destroy the reputation and credibility score of the user.
Mitigation
Implement proper deleteAttestation function that will delete the attestation from the user profile and mark it as compromised.