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

[5.8] Set a message for SuspiciousOperationException #29000

Merged
merged 3 commits into from
Jun 30, 2019
Merged

Conversation

GrahamCampbell
Copy link
Member

Having now had the time to look at the Symfony code, this exception arises when the host name is invalid or not trusted. Thus, we should set a friendly message to that effect.

@taylorotwell taylorotwell merged commit b68ba23 into 5.8 Jun 30, 2019
@GrahamCampbell GrahamCampbell deleted the ex-message branch June 30, 2019 13:59
@SjorsO
Copy link
Contributor

SjorsO commented Jul 1, 2019

@GrahamCampbell This exception is also thrown when a request tries to override the http method with an invalid value, see this line

When i saw this error in my logs it was because the request was using "__CONSTRUCT" as the http method.

@lilisgeorge
Copy link

@SjorsO . I am also receiving such a message on a daily basis, but can't figure out the source of the problem. All it says is Invalid method override "__CONSTRUCT". in Request.php. Have you found the cause to this error?

@SjorsO
Copy link
Contributor

SjorsO commented Jul 4, 2019

@lilisgeorge They are requests made by bots that are looking for vulnerabilities. If you upgrade to the latest version of Laravel these exceptions won't show in your logs anymore, see this pr: #28866

@lilisgeorge
Copy link

@SjorsO. Thanks for the explanation.

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.

4 participants