Rating:
Thanks to this tweet [https://twitter.com/phithon_xg/status/1073845338606194689?s=20](https://twitter.com/phithon_xg/status/1073845338606194689?s=20), I know that we can put the dtd with parameter entity right in the xml file.
So I extracted the flag through DNS using [http://dnsbin.zhack.ca/](http://dnsbin.zhack.ca/)
Upload [this](https://pastebin.com/raw/SJrs3st1) xml and a query will come to dnsbin containing the flag.