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

Cookie代码逻辑存在问题 #755

Closed
nabice opened this issue May 18, 2018 · 0 comments
Closed

Cookie代码逻辑存在问题 #755

nabice opened this issue May 18, 2018 · 0 comments

Comments

@nabice
Copy link

nabice commented May 18, 2018

return is_array($value) ? $default : $value;

这里在获取cookie的时候,只返回了非数组的值,而在
<?php if ($version && $version['available']): ?>
这里使用的时候,却把返回值当做了数组。

假如get函数返回了数组,那么

<strong><a href="<?php echo $version['link']; ?>"><?php _e('官方最新版本是'); ?> <?php echo $version['latest']; ?></a></strong>
可能还存在一个反射型XSS

@joyqi joyqi closed this as completed in b70d240 Sep 26, 2018
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