Skip to content

Font is not loaded on clean run #2

@MrInterBugs

Description

@MrInterBugs

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

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions