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

Possible XSS vulnerability #3

Open
enferas opened this issue Nov 14, 2021 · 0 comments
Open

Possible XSS vulnerability #3

enferas opened this issue Nov 14, 2021 · 0 comments

Comments

@enferas
Copy link

enferas commented Nov 14, 2021

Hello,

I would like to report for XSS vulnerability.

In file https://github.com/jorycn/thinkphp-zcms/blob/master/ThinkPHP/Mode/Api/Controller.class.php line 69

$handler  =   isset($_GET[C('VAR_JSONP_HANDLER')]) ? $_GET[C('VAR_JSONP_HANDLER')] : C('DEFAULT_JSONP_HANDLER');
exit($handler.'('.json_encode($data).');'); 

exit function will terminate the script and print a message which has $_GET[C('VAR_JSONP_HANDLER')]. Then there is XSS vulnerability.

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

No branches or pull requests

1 participant