Skip to content
New issue

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

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

Already on GitHub? # to your account

修正 $key 未编码导致的异常页面 XSS 漏洞(ThinkPHP 6.0) #3001

Merged
merged 1 commit into from
Apr 16, 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)
    {
    }
}

修正异常页面的 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)
    {
    }
}
```
@big-dream big-dream linked an issue Apr 16, 2024 that may be closed by this pull request
@big-dream big-dream merged commit d3904e5 into top-think:6.0 Apr 16, 2024
1 of 2 checks passed
@big-dream big-dream deleted the 6.0-issues-2996 branch August 5, 2024 08:08
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Reflected XSS(Cross Site Scripting)
1 participant