Submitted by wuwe1, also found by defsec, and kirk-baird
This is dangerous in scam senario because the malicious user can frontrun and become the owner of the collection. As owner, one can withdraw paymentToken. (note that _collections.isForSale can be change by frontrunner)
https://github.com/code-423n4/2022-03-joyn/blob/main/core-contracts/contracts/CoreFactory.sol#L70-L77
Two ways to mitigate.
sofianeOuafir (Joyn) confirmed and commented:
deluca-mike (judge) commented:
