The function createQuest is called by users with the quest role. The main purpose of the function is to create quests, which can be either erc20 or erc1155 type. When the type is erc20, a check is made to ensure the rewardTokenAddress_ is allowed to be used as a reward - if (rewardAllowlist[rewardTokenAddress_] == false) revert RewardNotAllowed();. The problem is that the same check isnt made when the quest is erc1155, as a result when erc1155 quest is created the function createQuest doesnt check if the rewardTokenAddress_ is in the allow list.
Consider adding a check to ensure the contract address is allowed to be used as a reward on erc1155 quests as well:
