-
Notifications
You must be signed in to change notification settings - Fork 74
Fix for remote code execution #39
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
base: master
Are you sure you want to change the base?
Conversation
* PHP7 warnings in DA code * Additional attributes support
| $stats[$key] = $value - $array[$key]; | ||
| } | ||
|
|
||
| if (!isset($array[$key])) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
extra spaces
|
|
||
| # Make sure we're dealing with a real number | ||
| $v = $array[$key]; | ||
| if (!is_float($v) && !is_int($v)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Better add braces here (PSR-2 § 5)
| <span class="left setting help" title="Internal name : evicted_unfetched
Items evicted from LRU that were never touched by get/incr/append/etc">Evicted unfetched</span> | ||
| <?php echo (isset($stats['evicted_unfetched'])) ? Library_Data_Analysis::hitResize($stats['evicted_unfetched']) : 'N/A on ' . $stats['version']; ?> | ||
| </div> | ||
|
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
While useful, this block seems unrelated with the security issue. Removing it would make the PR smaller, hence easier to review and merge.
|
I have created new pull request, using separated branch... let's use this one pls. |
This is mainly fix for the exploit described in
https://rstforums.com/forum/topic/85493-phpmemcachedadmin-122-remote-code-execution/