Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update Image.php #211

Merged
merged 4 commits into from
May 3, 2024
Merged

Update Image.php #211

merged 4 commits into from
May 3, 2024

Conversation

Sonicrrrr
Copy link
Contributor

Fix the bug related to Deserialization of Untrusted Data

Fix the bug related to Deserialization of Untrusted Data
Fix bugs related to Deserialization of Untrusted Data
@freekmurze
Copy link
Member

It seems the tests are failing, could you have a look?

@Sonicrrrr
Copy link
Contributor Author

It seems that your test case includes some exceptional scenarios that cause the creation of the Image object to throw an error, preventing it from entering the copy function. I am a security researcher, not a developer, so I can only offer ideas for fixes. You can rely on the code snippet I've written to modify it to fit the test cases.

Copy link
Contributor Author

@Sonicrrrr Sonicrrrr left a comment

Choose a reason for hiding this comment

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

Update code to fix phar deserialization vulnerability

Fix phar deserialization vulnerability
Update code to fix vulnerability
@Sonicrrrr
Copy link
Contributor Author

I have made a pull request to fix the above vulnerability, can you merge it into your code?

@Sonicrrrr Sonicrrrr closed this Mar 7, 2024
@Sonicrrrr Sonicrrrr reopened this Mar 7, 2024
@timvandijck
Copy link
Member

@Sonicrrrr looks good, thank you!

@timvandijck timvandijck merged commit 89847b5 into spatie:main May 3, 2024
26 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants