I was running a session a few days ago for some high-level characters and in the palace vault they found themselves an Efreeti Bottle. I rolled for the efreeti's response to being released per the DMG, and wouldn't you know it, they got the result:
91-00: The efreeti can cast the wish spell three times for you. It disappears when it grants the final wish or after 1 hour, and the bottle loses its magic.
The efreeti pops out and reluctantly greets them and spells out what they've found. After the excitement subsides, the predictable line of thinking comes about and they discuss wishing for more wishes, which I shoot down as cosmic law dictates this and that, and we all understandingly nod our heads and move on.
But as I reread the section on the Efreeti Bottle and skimmed through the Efreeti in the Monster Manual, there's really nothing per RAW that would prevent a character from making a wish like "I wish you would grant me 10 more wishes" immediately followed by something like "I wish you would disappear after 1 year instead of 1 hour".
So if a character gets a hold of an Efreeti Bottle and essentially wishes for more wishes, per RAW, does it work?