Skip to content

Commit

Permalink
Fix : CVE-2011-3760 : Nucleus における重要な情報を取得される脆弱性
Browse files Browse the repository at this point in the history
  • Loading branch information
Piyoyo committed Nov 5, 2015
1 parent 00ca321 commit 4e2aa46
Show file tree
Hide file tree
Showing 5 changed files with 29 additions and 2 deletions.
12 changes: 12 additions & 0 deletions nucleus/xmlrpc/.htaccess
@@ -0,0 +1,12 @@
Order allow,deny
Deny from all

<Files ~ "^server.php$">
##### Allow all access
Allow from all
### example:
##### Allow softbank ybb
# Allow from .bbtec.net
##### Allow from local_ip_address
# Allow from 127.0.0.1
</Files>
5 changes: 4 additions & 1 deletion nucleus/xmlrpc/api_blogger.inc.php
Expand Up @@ -12,6 +12,9 @@
* This file contains definitions for the methods in the Blogger API
*/

// prevent direct access
if (!isset($member))
exit;

// blogger.newPost
$f_blogger_newPost_sig = array(array(
Expand Down Expand Up @@ -443,4 +446,4 @@ function blogger_specialTags($item) {
);


?>
?>
3 changes: 3 additions & 0 deletions nucleus/xmlrpc/api_metaweblog.inc.php
Expand Up @@ -13,6 +13,9 @@
* This file contains definitions for the methods of the metaWeblog API
*/

// prevent direct access
if (!isset($member))
exit;

// metaWeblog.newPost
$f_metaWeblog_newPost_sig = array(array(
Expand Down
4 changes: 4 additions & 0 deletions nucleus/xmlrpc/api_mt.inc.php
Expand Up @@ -15,6 +15,10 @@
* Wouter Demuynck 2003-08-31
*/

// prevent direct access
if (!isset($member))
exit;

// mt.supportedMethods
$f_mt_supportedMethods_sig = array(array(
// return type
Expand Down
7 changes: 6 additions & 1 deletion nucleus/xmlrpc/api_nucleus.inc.php
Expand Up @@ -14,6 +14,10 @@
* NOTE: These functions are deprecated and will most likely be removed!
*/

// prevent direct access
if (!isset($member))
exit;

// nucleus.addItem
$f_nucleus_addItem_sig = array(array(
// return type
Expand Down Expand Up @@ -290,7 +294,8 @@ function _getItem($itemid, $username, $password) {

}


if (!isset($functionDefs))
$functionDefs = array();
$functionDefs = array_merge($functionDefs,
array(
"nucleus.addItem" =>
Expand Down

0 comments on commit 4e2aa46

Please sign in to comment.