Closed (outdated)
Project:
Security Review
Version:
2.0.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
29 May 2011 at 02:31 UTC
Updated:
31 Jan 2023 at 23:04 UTC
Jump to comment: Most recent
Comments
Comment #1
coltraneHmmn, my initial thought is that a "hush" feature would only be used by a few people and wouldn't warrant the additional code and UI controls. So, it means it's pretty low to almost no priority to me.
How do you envisions this feature working? What would it's controls look like? And then, why would you want a check to run but be "hushed"?
Comment #2
vegantriathleteI recognize that this would entail a lot of additional code and totally understand that you don't have tremendous enthusiasm for the suggestion. Here's what precipitated the request. The @font-your-face module creates two views (a page display and a block display). The page display has the access restrictions set, but the block display does not. So, the review flags the view as a security threat. In this case, I might want to choose to "hush" the warning just for the @fyf view, but still have the check run on the site for other views.
Basically, what would need to happen is that when a person views the details of the warning, they could indicate to "hush" individual items within that category, as opposed to marking the entire category to be skipped. I know that you aren't actually storing the individual details in the database. So, this would present an issue of how you would mark a given detail as "hushed." Maybe you could create an entry in the variable table. Of course, there is then a cascade of other considerations.
How about if you just mark this as postponed and see what kind of feedback you get from others to see if the feature would be widely used enough to warrant the investment in resources to implement it? If there is enough interest, we could then put more thought into the specific UI considerations.
Comment #3
gregglesI think a better solution is just to fix the offending view.
If this is a problem in other areas it could be considered, but it feels like a lot of code/UI for this feature. So marking as "works as designed" for now.
Comment #4
jenlamptonI'm going to re-open this issue because this is a problem we've been running into on multiple sites, where one of the checks fails, and every time we run the security review module, we need to re-investigate the issues we've already deemed are not actually problems. It would be fantastic if we were able to indicate a particular problem as "already reviewed", but not skip the check entirely so that we catch any new problems that crop up. Below are 3 examples of where we are running into this:
.htmlfiles. We provide this file type as an accessible alternative to a PDF. These specific files won't contain any dangerous HTML code, so we would like to ignore this particular field (it's a file upload field on a "HTML" media entity), but continue to check all other places where file uploads are permitted.I'm not sure how much work it would be to allow individual issues to be ignored, but they implemented something similar recently for the editoria11y module. We have developer resources we can contribute to a solution if others feel it is something worth pursuing.
Comment #5
gregglesIf the checks could be "hushed" in a way that would then make noise again if a different instance of the problem showed up then I think that would be a reasonable solution. What do you think?
All 3 of those items feel reasonable to me and I agree it would be nice to make them hushable.
For item 3 specifically, that feels like it should be an improvement to that upload test to confirm what permissions are required (if that's possible) so it doesn't even need a hush for that scenario.
Comment #6
gregglesI'm also not voicing this as an active maintainer of the module, so take what I said with a grain of salt ;)
Comment #7
jenlampton> If the checks could be "hushed" in a way that would then make noise again if a different instance of the problem showed up then I think that would be a reasonable solution. What do you think?
Yes, that was what I was hoping for also.
> For item 3 specifically, that feels like it should be an improvement to that upload test to confirm what permissions are required (if that's possible) so it doesn't even need a hush for that scenario.
That would also be ideal.
I wonder if the same could be done for #2, we could also check the permissions on the text format that accompanies the problematic text (assuming it is filtered text).
Comment #8
smustgrave commentedIf you have the resources/time then I would say please submit a patch for it, think it sounds like a neat idea that would only add value.
One feature that I think will be needed (just like editora11y does) is the ability to view all the "hushed" reviews. And ability to unhush (know that's not a word) reviews.
Comment #9
smustgrave commentedComment #10
smustgrave commentedSo in #2678112: Make fields check more useful with risky content (allowlist of content?) we are adding the ability to ignore specific violations of that test.
Adding a new array to display hushed findings
Could that be something we implement for other tests if needed?
Comment #11
gregglesSeems like a solid idea to me. Thanks!
Comment #12
smustgrave commentedSweet so I'll open a meta so we can evaluate the other checks and see what other ones could benefit from a hushed ability.
While digging into #2678112: Make fields check more useful with risky content (allowlist of content?) it did make me wonder if this could be generic, but with every check testing something different I wasn't too sure.
Comment #13
jenlamptonThank you so much for working on these improvements. I've requested time for devs to work on my 3rd request: Unsafe file extensions allowed in uploads. I didn't see a meta, so I created https://www.drupal.org/project/security_review/issues/3338061. I'll post our plan there when we start work on it :)
Comment #14
smustgrave commentedSo need to carve out some time this week but going to open a meta where we will check/decide which checks should have hushed ability. May have some time tonight
The ticket you opened is valid but checking vendor directory probably not.
Comment #15
smustgrave commentedOpened #3338073: [Meta] - Hush Check where we can discuss what does and does not need hushed abilities.