WordPress Core 5.2.3 - Cross-Site Host Modification

Exploit in perl This is the exploit on exploit DB for cross site host modification in Perl. Can anyone please tell me what is this doing and how it is doing. Basically I wanted the code in python for me to understand from the code how we bypass the WSF. Please can someone tell me how we are exploiting this or give me this code in python so I can try to reverse engineer.