In #275811: Warn about potentially insecure filter configurations we have a patch which is hopefully extremely likely to go into Drupal 7 (because it has been labeled a "release blocker" by the Drupal Security Team lead...)

The patch allows us to dynamically detect exactly which text formats on a Drupal site are configured insecurely, and to provide specific information about what makes them insecure.

We deliberately left out any serious user interface changes from that patch in order to focus on the API. The only user interface change that patch currently contains is the obvious one (putting the standard Drupal 7 warning about these text formats on the permission screen): http://drupal.org/files/issues/filter_permission_warnings.png

This issue is for figuring out how best to communicate this security information elsewhere in Drupal (mainly on the text format administration pages, but perhaps elsewhere also). The way the patch works, we are capable of printing text that is more or less along these lines:

This text format is configured insecurely. Only administrators and other highly trusted users should be given access to use it. The reason it is insecure is:
* The HTML filter is configured to allow the following unsafe tags: <script>, <object>, etc.
* The PHP filter allows users to execute arbitrary PHP code on your site.

Discuss :)

Comments

heather’s picture

Issue tags: +Usability, +D7UX

Tagging with Usability.

(the sidebar block link for "usability" lists issues tagged with Usability or d7ux)

http://drupal.org/project/issues/search/drupal?version[0]=7.x&issue_tags...

jix_’s picture

Status: Active » Needs review

Mockups.

Warnings for unsafe filters on the permissions page:
http://www.flickr.com/photos/mverbaar/4109242358/

Configuration page with warnings and labels for safe/unsafe filters:
http://www.flickr.com/photos/mverbaar/4108619091/

Bojhan’s picture

Priority: Critical » Normal
Issue tags: -Needs usability review, -Needs design review, -String freeze, -D7UX, -D7 UX freeze

To get some of the crazyness out of this issue, lets focus on what its about and not add extra tag cluft. The proposed design obivously makes far to much impact on the permission page, no reason to add more clutter there.

jix_’s picture

The proposed design obivously makes far to much impact on the permission page

How? It basically just wraps the warning (which is already there) in an actual warning style (yellow box), which, as I see it, removes clutter as the warning is separated from the description.

Bojhan’s picture

@mverbaar It is a low use case, and it adds so much visual prominence to it?

jix_’s picture

The visual prominence is only there for potentially dangerous filters, to probably just 1 in most cases. (Full HTML.)

I guess you're right though. There are a lot more potentially "dangerous" permissions in there, if we'd put warnings on all of those it would end up looking like a yellow zebra.

In that sense, should we just remove the warnings completely (the non-styled versions which are there now)? Keeping the warnings just at the filter configuration page ...

And how about the other mockup, the configuration page itself. Do you think the warnings (and labels) are ok there?

pwolanin’s picture

subscribe

sun’s picture

Version: 7.x-dev » 8.x-dev
kscheirer’s picture

Status: Needs review » Needs work

Needs work then.

wim leers’s picture

Issue summary: View changes
Status: Needs work » Closed (duplicate)

There's much more discussion around this already in #1835188: Make configuration of text formats more secure by default. Let's continue there.