WordPress.org

Support

Support » Plugins and Hacks » Feature request patch: capabilities-based security

Feature request patch: capabilities-based security

  • Alan–

    By default, only administrators have the ‘edit_theme_options’ necessary to access the widget admin panel. However, some sites have a role (e.g. for theme editors & graphic designers) between editor and administrator with this capability. If widget logic is installed on such a site, it introduces a privilege escalation.

    Awhile back I submitted a ticket and patch to the plugins track that addressed this by adding an option for & a check against an arbitrary capability necessary to access widget logic options (it defaults to “administrator”, so only admins can add widget logic to a widget). The check-points are:

    • when adding the various admin filters,
    • when processing an AJAX update (widget_logic_ajax_update_callback()),
    • when setting up the widgets for editing (widget_logic_expand_control()) and
    • when displaying widget logic options (widget_logic_options_control())

    The last two are redundant given the first, but the extra security checks don’t hurt. The patch probably won’t apply to the current release, but if you’re open to including it in WL, I’ll gladly update it.

    http://wordpress.org/plugins/widget-logic/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author alanft

    @alanft

    Yeah, I’ll take a pass at putting that into the dev version soon. If 3.6 turns out to need an update I’ll release it really soon.

    I’ve updated the patch to apply to WL 0.56.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Feature request patch: capabilities-based security’ is closed to new replies.