Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions gadgetchains/phpThumb/FD/1/chain.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
<?php

namespace GadgetChain\phpThumb;

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

public static $vector = '__destruct';
public static $author = 'mcdruid';
public static $information = 'Fixed by https://github.com/JamesHeinrich/phpThumb/pull/226';

public function generate(array $parameters)
{
return new \phpthumb($parameters['remote_path']);
}
}
11 changes: 11 additions & 0 deletions gadgetchains/phpThumb/FD/1/gadgets.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<?php

class phpthumb
{
public $tempFilesToDelete = [];

public function __construct($tempFileToDelete) {
$this->tempFilesToDelete[] = $tempFileToDelete;
}

}