Skip to content

phpThumb/FD1#201

Merged
whattheslime merged 2 commits intoambionics:masterfrom
mcdruid:phpthumb
Mar 11, 2025
Merged

phpThumb/FD1#201
whattheslime merged 2 commits intoambionics:masterfrom
mcdruid:phpthumb

Conversation

@mcdruid
Copy link
Copy Markdown
Contributor

@mcdruid mcdruid commented Nov 26, 2024

Very simple FD gadget chain, which should work in all releases until the next.


class FD1 extends \PHPGGC\GadgetChain\FileDelete
{
public static $version = 'v1.7.12 <= v1.7.22';
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
public static $version = 'v1.7.12 <= v1.7.22';
public static $version = '<= v1.7.22';

Since you said it would work on all version before this one.

Copy link
Copy Markdown
Contributor Author

@mcdruid mcdruid Nov 26, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yup, we could do that.

Somewhat strangely it seems that v1.7.12 is the first release, at least in the project's current incarnation:

https://github.com/JamesHeinrich/phpThumb/tags

@nollium nollium added the gadget chain This issue could yield a new gadget chain. label Feb 26, 2025
@whattheslime whattheslime merged commit c0a36de into ambionics:master Mar 11, 2025
@whattheslime
Copy link
Copy Markdown
Collaborator

Thanks for all your contributions; the gadget has been added to the project.

However, please note that the fix you proposed mitigates this gadget chain to prevent arbitrary file deletion but can still be used for other purposes. Please check the following comment: #205 (comment).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

gadget chain This issue could yield a new gadget chain.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants