#55241 [SC-Insight] insufficient validation of pool token suffix allows consecutive hyphens enables token symbol impersonation and user confusion
Description
Brief / Intro
Vulnerability Details
247:256:fassets/contracts/assetManager/library/AgentsCreateDestroy.sol
// validate - require only printable ASCII characters (no spaces) and limited length
bytes memory suffixb = bytes(_suffix);
uint256 len = suffixb.length;
require(len >= MIN_SUFFIX_LEN, "suffix too short");
require(len < MAX_SUFFIX_LEN, "suffix too long");
for (uint256 i = 0; i < len; i++) {
bytes1 ch = suffixb[i];
// allow A-Z, 0-9 and '-' (but not at start or end)
require((ch >= "A" && ch <= "Z") || (ch >= "0" && ch <= "9") || (i > 0 && i < len - 1 && ch == "-"),
"invalid character in suffix");
}Impact Details
References
Proof of Concept
Previous#55230 [SC-Insight] there is a sub gwei executor fee can be bypass and freezes eth in redemptionrequestsNext#55049 [SC-Insight] there is a issue related that the msg value not returned to payer in self close exit
Was this helpful?