Wow, I'm in shock. How could Apple let this one slip in? When I was a junior fullstack I had to design a very similar system and this was one of the very basic checks that I had in mind back then. I don't know how could anyone excuse this very basic bug in such critical service.
e.g https://news.ycombinator.com/item?id=15800676 and
https://news.ycombinator.com/item?id=15828767
So I don't get shocked anymore seeing Apple security issues.