You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When cloning into the application, the file already is in the fonts folder: application/dompdf/lib/fonts/exploitfont_normal_3f83639933428d70e74a061f39009622.php
If you delete this file so that the server is like it would be on a real world system (not preloaded with the attack) and run the instructions on the readme the file will never be added back making it imposssible to achive the RCE.
As you can se in the above screenshot exploit_font.php is never requested.
Installing the packages in the pull request that is not merged does not make a difference.
(Unsure if this is related)
I am ALSO running the same exploit on a different php system (Symfony + Dompdf V1.2.0) results in: Uncaught PHP Exception Symfony\Component\Debug\Exception\ContextErrorException: "Warning: Invalid argument supplied for foreach()" at ...vendor/phenx/php-font-lib/src/FontLib/AdobeFontMetrics.php line 57
To fix the above fonts issue using a different payload font worked.
Hoping this is just a config issue on my system.
The text was updated successfully, but these errors were encountered:
When cloning into the application, the file already is in the fonts folder:
application/dompdf/lib/fonts/exploitfont_normal_3f83639933428d70e74a061f39009622.php
If you delete this file so that the server is like it would be on a real world system (not preloaded with the attack) and run the instructions on the readme the file will never be added back making it imposssible to achive the RCE.
![Screenshot 2023-01-25 at 12 33 02](https://user-images.githubusercontent.com/21267797/214564465-8b5488d2-4e78-4993-8d7b-cbfb5422ddae.png)
As you can se in the above screenshot
exploit_font.php
is never requested.Installing the packages in the pull request that is not merged does not make a difference.
(Unsure if this is related)
I am ALSO running the same exploit on a different php system (Symfony + Dompdf V1.2.0) results in:
Uncaught PHP Exception Symfony\Component\Debug\Exception\ContextErrorException: "Warning: Invalid argument supplied for foreach()" at ...vendor/phenx/php-font-lib/src/FontLib/AdobeFontMetrics.php line 57
To fix the above fonts issue using a different payload font worked.
Hoping this is just a config issue on my system.
The text was updated successfully, but these errors were encountered: