Skip to content

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

Merged
big-dream merged 1 commit into
top-think:6.0from
big-dream:6.0-issues-2996
Apr 16, 2024
Merged

修正 $key 未编码导致的异常页面 XSS 漏洞(ThinkPHP 6.0) #3001
big-dream merged 1 commit into
top-think:6.0from
big-dream:6.0-issues-2996

Conversation

@big-dream
Copy link
Copy Markdown
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
@big-dream big-dream deleted the 6.0-issues-2996 branch August 5, 2024 08:08
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.

Reflected XSS(Cross Site Scripting)

1 participant