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

修正 $key 未编码导致的异常页面 XSS 漏洞 #2997

Merged
merged 1 commit into from
Apr 11, 2024

Conversation

big-dream
Copy link
Contributor

修正异常页面的 XSS 漏洞

请求

GET http://127.0.0.1:8080/?%3Cscript%3Eeval(atob(`YWxlcnQoJzEyMycp`))%3C/script%3E=1

控制器

<?php

namespace app\controller;

class Index
{
    public function index(array $params)
    {
    }
}

#2996

修正异常页面的 XSS 漏洞
```http
GET http://127.0.0.1:8080/?%3Cscript%3Eeval(atob(`YWxlcnQoJzEyMycp`))%3C/script%3E=1
```

```php
<?php

namespace app\controller;

class Index
{
    public function index(array $params)
    {
    }
}
```
@liu21st liu21st merged commit 403358c into top-think:8.0 Apr 11, 2024
5 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.

None yet

2 participants