Home Upgrade Search Memberlist Extras Hacker Tools Award Goals Help Wiki Contact

XXE Not working

Hello,

Im currently trying to learn XXE and i've been trying this particular one for hours now without much luck.
I have to read from a file on the machine using XXE. All i have is the below xml:
<?xml version='1.0' encoding='UTF-8'?>
<note>
<to>Murphy</to>
<from>Duck</from>
<heading>Meeting</heading>
<body>We are meeting at my house this weekend</body>
</note>

I've tried to inject different payloads such as <!DOCTYPE foo [<!ENTITY file SYSTEM "file:////etc/passwd" >]> and lots of variants but no luck.
Should i be trying to inside <body> etc or should I add it outside of that? I've tried everything from OWASP website, random cheatsheets to youtube videos with no luck..
Some guidance?

Thanks


Possibly Related Threads...
Thread / Author Replies Views Last Post
by PrisoftApr 18, 2021 09:20 AM 0 113 Apr 18, 2021 09:20 AM
Last Post: Prisoft
by Gee4rceApr 12, 2021 07:18 PM 53 4,279 Apr 12, 2021 07:18 PM
Last Post: Gee4rce
by srikanthrSep 11, 2019 04:55 AM 1 141 Sep 11, 2019 04:55 AM
Last Post: compalabee