Skip directly to content

Feed aggregator

Widgets and Displays support Fieldception

Drupal Contrib Security Announcements - Sat, 06/28/2014 - 15:18
Project: Insert FieldStatus: ActivePriority: NormalCategory: Bug reportComponent: CodeAssigned: davidwbarratt

Fields should only be allowed to be inserted one level deep, or a solution for recursion should be established.

Categories: Security posts

Widget Parent is Lost when saving from field settings.

Drupal Contrib Security Announcements - Sat, 06/28/2014 - 15:17
Project: Insert FieldStatus: ActivePriority: NormalCategory: Bug reportComponent: CodeAssigned: davidwbarratt

Whenever a field is saved from the field settings
http://example.com/admin/structure/types/manage/article/fields/field_image

The field loses it's field parent.

Categories: Security posts

How is the module intended to work?

Drupal Contrib Security Announcements - Sat, 06/28/2014 - 15:16
Project: UUID Node PropertiesVersion: 7.x-1.0-beta1Status: ActivePriority: NormalCategory: Support requestComponent: MiscellaneousAssigned: Unassigned

If used with deployments, should it add dependencies (e.g., from a leaf book page to its parents) automatically?

It currently does not seem to handle such dependencies. If that's the current state of affairs (which is fine, I can take care in own code) it would be nice however to have an explicit hint on the module page.

Thank you very much for the module, it enables using books with deploy!

Categories: Security posts

How is the module intended to work?

Drupal Core Security Announcements - Sat, 06/28/2014 - 15:16
Project: UUID Node PropertiesVersion: 7.x-1.0-beta1Status: ActivePriority: NormalCategory: Support requestComponent: MiscellaneousAssigned: Unassigned

If used with deployments, should it add dependencies (e.g., from a leaf book page to its parents) automatically?

It currently does not seem to handle such dependencies. If that's the current state of affairs (which is fine, I can take care in own code) it would be nice however to have an explicit hint on the module page.

Thank you very much for the module, it enables using books with deploy!

Categories: Security posts

Error when running cron

Drupal Contrib Security Announcements - Sat, 06/28/2014 - 15:15

When I run cron, I get an error message and a link to https://www.drupal.org/SA-CORE-2013-003

Can someone explain me what this means and how to solve the problem?

Drupal version: Drupal 7.x
Categories: Security posts

Error when running cron

Drupal Core Security Announcements - Sat, 06/28/2014 - 15:15

When I run cron, I get an error message and a link to https://www.drupal.org/SA-CORE-2013-003

Can someone explain me what this means and how to solve the problem?

Drupal version: Drupal 7.x
Categories: Security posts

Installing Zend Optimizer Plus Opcache on Linux/windows (Alternative for APC)

Drupal Contrib Security Announcements - Sat, 06/28/2014 - 15:11

Installing in windows

Download Zend Optimizer from following link

http://downloads.php.net/pierre/

You should download the thread safe one if you are using mode_php with Apache 2 (ZendfOptimizerPlus-20130214-5.3-ts-vc9-x86.zip)

Change the following in your php.ini

;Zend OPtimizer
zend_extension = "C:\php-5.3\ext\php_ZendOptimizerPlus.dll"
opcache.memory_consumption=128
opcache.interned_strings_buffer=8
opcache.max_accelerated_files=4000
opcache.revalidate_freq=60
opcache.fast_shutdown=1
opcache.enable_cli=1
;opcache.save_comments=0
;opcache.enable_file_override=1
;XDEBUG
zend_extension = "C:\php-5.3\ext\php_xdebug-2.2.5-5.3-vc9.dll"
xdebug.remote_enable=1
xdebug.remote_host=127.0.0.1
xdebug.remote_port=9000
; Port number must match debugger port number in NetBeans IDE Tools > Options > PHP
xdebug.remote_handler=dbgp
xdebug.profiler_enable=1
xdebug.profiler_output_dir="D:\www\tmp"

If you are using Xdebug then always load Zend Optimizer before Xbebug as shown above.

Check the installation with php -v

c:\>php -v
PHP 5.3.28 (cli) (built: Dec 10 2013 22:27:36)
Copyright (c) 1997-2013 The PHP Group
Zend Engine v2.3.0, Copyright (c) 1998-2013 Zend Technologies
    with Zend Optimizer+ v7.0.0, Copyright (c) 1999-2013, by Zend Technologies
    with Xdebug v2.2.5, Copyright (c) 2002-2014, by Derick Rethans

For further optimization please look at https://github.com/zendtech/ZendOptimizerPlus

Installing on Linux

$PHP_DIR/bin/phpize
./configure \
      --with-php-config=$PHP_DIR/bin/php-config
make
make install # this will copy opcache.so into PHP extension directory

Goto to https://github.com/zendtech/ZendOptimizerPlus for more information

Drupal version: Drupal 7.x
Categories: Security posts

Installing Zend Optimizer on Linux/windows

Drupal Core Security Announcements - Sat, 06/28/2014 - 15:11

Installing in windows

Download Zend Optimizer from following link

http://downloads.php.net/pierre/

You should download the thread safe one if you are using mode_php with Apache 2 (ZendfOptimizerPlus-20130214-5.3-ts-vc9-x86.zip)

Change the following in your php.ini

;Zend OPtimizer
zend_extension = "C:\php-5.3\ext\php_ZendOptimizerPlus.dll"
opcache.memory_consumption=128
opcache.interned_strings_buffer=8
opcache.max_accelerated_files=4000
opcache.revalidate_freq=60
opcache.fast_shutdown=1
opcache.enable_cli=1
;opcache.save_comments=0
;opcache.enable_file_override=1
;XDEBUG
zend_extension = "C:\php-5.3\ext\php_xdebug-2.2.5-5.3-vc9.dll"
xdebug.remote_enable=1
xdebug.remote_host=127.0.0.1
xdebug.remote_port=9000
; Port number must match debugger port number in NetBeans IDE Tools > Options > PHP
xdebug.remote_handler=dbgp
xdebug.profiler_enable=1
xdebug.profiler_output_dir="D:\www\tmp"

If you are using Xdebug then always load Zend Optimizer before Xbebug as shown above.

Check the installation with php -v

c:\>php -v
PHP 5.3.28 (cli) (built: Dec 10 2013 22:27:36)
Copyright (c) 1997-2013 The PHP Group
Zend Engine v2.3.0, Copyright (c) 1998-2013 Zend Technologies
    with Zend Optimizer+ v7.0.0, Copyright (c) 1999-2013, by Zend Technologies
    with Xdebug v2.2.5, Copyright (c) 2002-2014, by Derick Rethans

For further optimization please look at https://github.com/zendtech/ZendOptimizerPlus

Installing on Linux

$PHP_DIR/bin/phpize
./configure \
      --with-php-config=$PHP_DIR/bin/php-config
make
make install # this will copy opcache.so into PHP extension directory

Goto to https://github.com/zendtech/ZendOptimizerPlus for more information

Drupal version: Drupal 7.x
Categories: Security posts

Setting an affiliate value using rules

Drupal Contrib Security Announcements - Sat, 06/28/2014 - 15:09

I have installed the Affiliate module and am trying to set all of the users as affiliates when they create new accounts as opposed to them having to go into their profile and check the box.

I have tried 2 ways that haven't worked for me i.e. when I do them users still aren't marked as affiliates with out having to go into the profile turn it on and save the account.

Method 1:

function **edited**(&$edit, $account, $category) {
      if($account->is_new){
      $edit['data']['affiliate_optin'] = isset($edit['affiliate_optin']) ? $edit['affiliate_optin'] : 1;
  }
}

Method 2:

I created a rule that executes this custom PHP

affiliate_insert_affiliate([account:uid],1);
affiliate_set_affiliate_status([account:uid],1);
affiliate_optin([account:uid],1);

I am starting to get pretty desperate so any help would be greatly appreciated.

Thanks,

Kris

Drupal version: Drupal 7.x
Categories: Security posts

Setting an affiliate value using rules

Drupal Core Security Announcements - Sat, 06/28/2014 - 15:09

I have installed the Affiliate module and am trying to set all of the users as affiliates when they create new accounts as opposed to them having to go into their profile and check the box.

I have tried 2 ways that haven't worked for me i.e. when I do them users still aren't marked as affiliates with out having to go into the profile turn it on and save the account.

Method 1:

function **edited**(&$edit, $account, $category) {
      if($account->is_new){
      $edit['data']['affiliate_optin'] = isset($edit['affiliate_optin']) ? $edit['affiliate_optin'] : 1;
  }
}

Method 2:

I created a rule that executes this custom PHP

affiliate_insert_affiliate([account:uid],1);
affiliate_set_affiliate_status([account:uid],1);
affiliate_optin([account:uid],1);

I am starting to get pretty desperate so any help would be greatly appreciated.

Thanks,

Kris

Drupal version: Drupal 7.x
Categories: Security posts

How to manage your photos on Flickr.com

Drupal Contrib Security Announcements - Sat, 06/28/2014 - 14:50

To get the most out of the Drupal Flickr module, on your flickr.com account you should:

  1. complete the information associated with your account and your own photos
  2. put your own photos that you want to embed as a slideshow in photosets (aka 'albums' on Flickr)
  3. put the photos from others you want to embed as an album in galleries (not for your own photos, not available as slideshow)
  4. create an invite-only public group if you intend to display photos of a fixed group of flickr members without the need of giving them permissions on your website, e.g. for a sports club website
  5. know how to find appropriate keywords to fill a site quickly with public images related to the content based on taxonomy terms attached to a post.
1. Complete the information associated with your account and your own photos. 2. Put own photos you want to embed as a slideshow in photosets. 3. Put the photos from others you want to embed as an album in galleries. 4. Create an invite-only public group. 5. Find appropriate keywords to fill a site quickly with public images.
Categories: Security posts

How to manage your photos on Flickr.com

Drupal Core Security Announcements - Sat, 06/28/2014 - 14:50

To get the most out of the Drupal Flickr module, on your flickr.com account you should:

  1. complete the information associated with your account and your own photos
  2. put your own photos that you want to embed as a slideshow in photosets (aka 'albums' on Flickr)
  3. put the photos from others you want to embed as an album in galleries (not for your own photos, not available as slideshow)
  4. create an invite-only public group if you intend to display photos of a fixed group of flickr members without the need of giving them permissions on your website, e.g. for a sports club website
  5. know how to find appropriate keywords to fill a site quickly with public images related to the content based on taxonomy terms attached to a post.
1. Complete the information associated with your account and your own photos. 2. Put own photos you want to embed as a slideshow in photosets. 3. Put the photos from others you want to embed as an album in galleries. 4. Create an invite-only public group. 5. Find appropriate keywords to fill a site quickly with public images.
Categories: Security posts

No minimal password length?

Drupal Contrib Security Announcements - Sat, 06/28/2014 - 14:43
Project: Password Reset Landing Page (PRLP)Version: 7.x-1.0Status: ActivePriority: NormalCategory: Feature requestComponent: CodeAssigned: Unassigned

I installed this module, but I noticed I was able to create passwords with only 1 character?

On my normal password reset I had : https://www.drupal.org/project/password_policy installed, but it seems this module and password_policy don't go together?

Categories: Security posts

No minimal password length?

Drupal Core Security Announcements - Sat, 06/28/2014 - 14:43
Project: Password Reset Landing Page (PRLP)Version: 7.x-1.0Status: ActivePriority: NormalCategory: Feature requestComponent: CodeAssigned: Unassigned

I installed this module, but I noticed I was able to create passwords with only 1 character?

On my normal password reset I had : https://www.drupal.org/project/password_policy installed, but it seems this module and password_policy don't go together?

Categories: Security posts

Tests with dependencies do not show up if the dependencies are present

Drupal Contrib Security Announcements - Sat, 06/28/2014 - 14:34
Project: Drupal coreVersion: 8.x-devStatus: ActivePriority: NormalCategory: Bug reportComponent: simpletest.moduleAssigned: Unassigned

The relevant code checks $dependency_data, but that is not defined anywhere.

We have a test for this, but we only test that we can hide a test, not that a test with valid dependencies shows up

Categories: Security posts

Tests with dependencies do not show up if the dependencies are present

Drupal Core Security Announcements - Sat, 06/28/2014 - 14:34
Project: Drupal coreVersion: 8.x-devStatus: ActivePriority: NormalCategory: Bug reportComponent: simpletest.moduleAssigned: Unassigned

The relevant code checks $dependency_data, but that is not defined anywhere.

We have a test for this, but we only test that we can hide a test, not that a test with valid dependencies shows up

Categories: Security posts

Nube Question: Satellite Footprint Image Browser

Drupal Core Security Announcements - Sat, 06/28/2014 - 14:28

Design Goal: build a two-panel screen layout, with a list of satellite beams on the left, and a selected satellite footprint image on the right.

Can anyone please recommend a module and/or configuration to do this?

Use Case: A user scrolls through the list of satellite beams in the left window; when the user clicks on any item in the list, an associated image will appear in the right window.

I have already generated the content and view to display the list of satellite beams.

There are probably many ways to do this. I am new to Drupal, so not sure what is the simplest best-practice way of going about this.

Note, I am an moderately-experienced programmer, but have never coded anything in Drupal... and willing to learn if recommended.

Thanks,
--Chris Chaudoir

p.s., if interested, what I have done so far is at verticalvector dot com

Drupal version: Drupal 7.x
Categories: Security posts

Inconsistencies with entity hooks

Drupal Core Security Announcements - Sat, 06/28/2014 - 14:25
Project: Drupal coreVersion: 8.x-devStatus: ActivePriority: NormalCategory: Bug reportComponent: entity systemAssigned: Unassigned

While I was working on #2216535: Replace Node overview topic and Node API topic with Entity Hooks topic, I noticed several problems with the entity hooks:

a) When the entity CRUD hooks are invoked, the generic ones like hook_entity_create() and hook_entity_load() all have the entity type ID passed in. This was not documented in most of the hook documentation in entity.api.php (I'm fixing that).

However, this is not being tested in entity_crud_hook_test.module where it tests all the entity CRUD hooks. I think that should be fixed?

b) Inconsistency: In all cases but one, the EntityStorageBase::invokeHook() method is used to invoke the entity hooks from the storage controller. This makes the type-specific hook run before the generic hook (hook_ENTITY_TYPE_create() before hook_entity_create() for instance).

However, during load it goes in the opposite order. It seems like this should be reversed? See EntityStorageBase::postLoad().

Categories: Security posts

.ht.sqlite database folder -- false permissions warning

Drupal Core Security Announcements - Sat, 06/28/2014 - 14:20
Project: Security ReviewVersion: 7.x-1.1Status: ActivePriority: NormalCategory: Bug reportComponent: CodeAssigned: Unassigned

I am receiving a warning about "Web server file system permissions" :

The following files and directories appear to be writeable by your web server. In most cases you can fix this by simply altering the file permissions or ownership. If you have command-line access to your host try running "chmod 644 [file path]" where [file path] is one of the following paths (relative to your webroot). For more information consult the Drupal.org handbooks on file permissions.
./sites/default/db

"db" directory contains .ht.sqlite database file. This directory, as well as database file, should be writeable by web server (permissions 755) ! otherwise (if permissions are 644) the website will be unable to work

So, there should be no warnings about folders that contain ".ht.sqlite" file

Categories: Security posts

SA-CONTRIB-2014-065 - Custom Meta - Cross Site Scripting (XSS)

Drupal Contrib Security Announcements - Wed, 06/18/2014 - 14:37
  • Advisory ID: DRUPAL-SA-CONTRIB-2014-065
  • Project: Custom Meta (third-party module)
  • Version: 6.x, 7.x
  • Date: 2014-June-18
  • Security risk: Moderately critical
  • Exploitable from: Remote
  • Vulnerability: Cross Site Scripting
Description

The module allows you to define and manage custom meta tags.

The module does not sufficiently sanitize user input before displaying the attribute and content values for meta tags on the administration page.

This vulnerability is mitigated by the fact that an attacker must have access to an account with the permission "administer custom meta settings".

CVE identifier(s) issued
  • A CVE identifier will be requested, and added upon issuance, in accordance with Drupal Security Team processes.
Versions affected
  • Custom Meta 6.x-1.x versions prior to 6.x-1.2.
  • Custom Meta 7.x-1.x versions prior to 7.x-1.2.

Drupal core is not affected. If you do not use the contributed Custom Meta module, there is nothing you need to do.

Solution

Install the latest version:

Also see the Custom Meta project page.

Reported by Fixed by Coordinated by Contact and More Information

The Drupal security team can be reached at security at drupal.org or via the contact form at http://drupal.org/contact.

Learn more about the Drupal Security team and their policies, writing secure code for Drupal, and securing your site.

Follow the Drupal Security Team on Twitter at https://twitter.com/drupalsecurity

Drupal version: Drupal 6.xDrupal 7.x
Categories: Security posts

Pages