php filter encoding2019/06/19  · atom in a few seconds edit view language logout / .svn/wc ....

9
Advanced XXE Exploitation Exercise 3: PHP filter encoding (App port 8023) Philippe Arteau GoSecure Countertack 19/06/2019 Slides: http://bit.ly/xxeparis

Upload: others

Post on 26-Oct-2020

1 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: PHP filter encoding2019/06/19  · atom in a few seconds Edit View Language Logout / .svn/wc . Control Panel XML File 2 4 6 16 feed [ xxe SYSTEM < feed> " php: / / filter/ convert

Advanced XXE ExploitationExercise 3: PHP filter encoding (App port 8023)

Philippe ArteauGoSecure Countertack

19/06/2019Slides: http://bit.ly/xxeparis

Page 2: PHP filter encoding2019/06/19  · atom in a few seconds Edit View Language Logout / .svn/wc . Control Panel XML File 2 4 6 16 feed [ xxe SYSTEM < feed> " php: / / filter/ convert
Page 3: PHP filter encoding2019/06/19  · atom in a few seconds Edit View Language Logout / .svn/wc . Control Panel XML File 2 4 6 16 feed [ xxe SYSTEM < feed> " php: / / filter/ convert

Allow the extraction of binary file

SVN metadata(older version : .svn/entries)

Page 4: PHP filter encoding2019/06/19  · atom in a few seconds Edit View Language Logout / .svn/wc . Control Panel XML File 2 4 6 16 feed [ xxe SYSTEM < feed> " php: / / filter/ convert

1. Ctrl-Shift-B

2. Grep or Open in SQLite Other file versionned

Page 5: PHP filter encoding2019/06/19  · atom in a few seconds Edit View Language Logout / .svn/wc . Control Panel XML File 2 4 6 16 feed [ xxe SYSTEM < feed> " php: / / filter/ convert

Use the same method use to read SVN metadata to read this PHP file

Page 6: PHP filter encoding2019/06/19  · atom in a few seconds Edit View Language Logout / .svn/wc . Control Panel XML File 2 4 6 16 feed [ xxe SYSTEM < feed> " php: / / filter/ convert
Page 7: PHP filter encoding2019/06/19  · atom in a few seconds Edit View Language Logout / .svn/wc . Control Panel XML File 2 4 6 16 feed [ xxe SYSTEM < feed> " php: / / filter/ convert
Page 8: PHP filter encoding2019/06/19  · atom in a few seconds Edit View Language Logout / .svn/wc . Control Panel XML File 2 4 6 16 feed [ xxe SYSTEM < feed> " php: / / filter/ convert

Can you find how to get RCE using the PHP script?

Page 9: PHP filter encoding2019/06/19  · atom in a few seconds Edit View Language Logout / .svn/wc . Control Panel XML File 2 4 6 16 feed [ xxe SYSTEM < feed> " php: / / filter/ convert

QuestionS ?

[email protected]/blog/@h3xStream @GoSecure_Inc