Hey I was wondering if and one has had problems with this part of the module? I’ve got the error-based method to work but the CDATA isn’t working. When I try to point the file at “file:///var/www/html/error” I get a message that say it has 8192 bytes with an errno=21. When I use the CDATA method nothing happens at all.
It is php server, your file can’t end with nothing. There has to be filename.php
Have you got a flag? Seems, I’ve stucked
I’ve downloaded all php files except flag.php
Tried both methods, CDATA doesn’t work. My server answers on request with dtd file, but nothing happens. Seems, there is filter for files. Any hints please?
One of them work if CDATA isn’t working try error and really pay attention to the steps and details.
@QuickFix914 - I ve finally solved this using CDATA itself… It worked for me after few attempts… One hint would be the flag.php is located in / directory only. So, modify ur XXE payload accordingly and I ve got the flag in my response. DM if you are stuck.
CDATA and pay attention to the path for the flag… Hint: /
Thanks I was struggling with this as well and nothing seemed to work until …DOOOUGH
/flag.php details matters.
Cheers
Don’t know why but CDATA did not work for me as well.
Eventually I got the flag by using the old base64 encoding method.
There are filters in submitDetails.php
catching some keywords, but it only works for the POST payload.
Putting the <!ENTITY company SYSTEM xxxxxx>
definition in the remote xxe.dtd
file can bypass all filters.
Don’t think this is the expected way, though.
in content file:///var/www/html/submitDetails.php path seems invalid. however, retrieving the flag works…
- understand the
submitDetails.php
source code properly. There’s a logic flaw,
- Try changing the file name on a valid dir with valid and invalid filename and notice the changes,
- And i’m sure that CDATA will work.
Good Luck
Hi,
I can’t get any further here either, at some point I looked for solutions and found something about this, unfortunately that didn’t work either, it must be something with the web server.
Can you help me please on this it doesnt work for me i have tried everything
Can someone help me on this please it doesnt work i have tried everything !!!
“file:///flag.php”