Closed (fixed)
Project:
Drupal.org security advisory coverage applications
Component:
module
Priority:
Normal
Category:
Task
Assigned:
Issue tags:
Reporter:
Created:
1 Nov 2024 at 19:32 UTC
Updated:
15 Oct 2025 at 19:29 UTC
Jump to comment: Most recent
Comments
Comment #2
jaseerkinangattil commentedComment #3
vishal.kadamThank you for applying!
Please read Review process for security advisory coverage: What to expect for more details and Security advisory coverage application checklist to understand what reviewers look for. Tips for ensuring a smooth review gives some hints for a smoother review.
The important notes are the following.
phpcs --standard=Drupal,DrupalPracticeon the project, which alone fixes most of what reviewers would report.To the reviewers
Please read How to review security advisory coverage applications, Application workflow, What to cover in an application review, and Tools to use for reviews.
The important notes are the following.
For new reviewers, I would also suggest to first read In which way the issue queue for coverage applications is different from other project queues.
Comment #4
vishal.kadamComment #5
vishal.kadam1. Fix phpcs issues.
2. FILE: README.txt
Replace README.txt with README.md, that should follow the content and formatting described in README.md template.
3. FILE: social_auth_entra_id.module
Drupal does not have primary and secondary hooks. Instead of that, it is preferable to use the usual description: Hook implementations for the [module name] module. where [module name] is the name of the module given in its .info.yml file.
Comment #6
jaseerkinangattil commentedAll the coding standards issues are fixed in the new release
Comment #7
jaseerkinangattil commentedComment #8
vishal.kadamRest seems fine to me.
Let’s wait for other reviewers to take a look. If everything goes fine, you will get the role.
Comment #9
jaseerkinangattil commented@avpaderno I have added the suggested changes, please review.
Comment #10
klausiThanks for submitting!
The block configuration form is vulnerable to XSS exploits. Any editor user that has the permission "Administer blocks" can insert malicious scripts into the Login Text field like
<script>alert('XSS');</script>.The permission "Administer blocks" is not restricted for access and often given to content editors. They should not be able to take over the site with an XSS attack.
Solution: do you need to use the Markup class? If you just pass your assembled string to #markup then Drupal will sanitize bad scripts for you? Or does it then strip your i HTML tag? Then you could use Xss::filter() to only allow some tags you need.
And please don't remove the security tag, we keep that for statistics and to show examples of security problems.
Comment #11
nickdickinsonwildeNot strictly speaking security so I wouldn't suggest this blocking approval but a few concerns:
- Caching: unless there is some need, I'd strongly suggest caching based on user context, and not setting max-age to 0. That will disable full page cache on any page with that block. Caching based on user will let anonymous pages still be cached at least.
- *.module file is not required if it is empty.
- weak dependency on font-awesome (fa-* classes) with no mention of font-awesome requirements
Comment #12
rushikesh raval commentedI am changing priority as per Issue priorities.
Comment #13
jaseerkinangattil commentedAll the mentioned changes are updated and also the gitlab pipeline is also success.
Requesting to review.
Thanks
Comment #14
avpadernoWhen
#allowed_tagsis used, there is no need to pass the markup toXSS::filter(), because with#allowed_tagsthat is done by Drupal core.I do not have the time to make a full review; that is why I did not change the issue status.
Comment #15
avpadernoComment #16
avpadernosrc/Controller/SocialAuthEntraIdController.php
Since that class does not use methods from the parent class, it does not need to use
ControllerBaseas parent class. Controllers do not need to have a parent class; as long as they implement\Drupal\Core\DependencyInjection\ContainerInjectionInterface, they are fine.The
$messageparameter passed to theLoggerInterfacemethods must be a literal string that uses placeholders. It is not a translatable string returned fromt()nor$this->t(), a string concatenation, a value returned from a function/method, nor a variable containing an exception object.src/Plugin/Block/EntraIdLoginBlockBlock.php
When
#allowed_tagsis used, there is no need to pass the markup toXSS::filter(), because with#allowed_tagsthat is done by Drupal core.Comment #17
jaseerkinangattil commentedThanks for reviewing @avpaderno
I have optimized the code as per the update.
Requesting to review.
Thanks again!
Comment #18
avpadernoThank you for your contribution and for your patience with the review process!
I am going to update your account so you can opt into security advisory coverage any project you create, including the projects you already created.
These are some recommended readings to help you with maintainership:
You can find more contributors chatting on Slack or IRC in #drupal-contribute. So, come hang out and stay involved!
Anyone is welcome to participate in the review process. Please consider reviewing other projects that are pending review. I encourage you to learn more about that process and join the group of reviewers.
I thank also all the reviewers for helping with these applications.
Comment #19
avpadernoComment #21
jaseerkinangattil commentedThank you so much for your thoughtful note and for enabling security advisory coverage for my projects — I really appreciate the support.
I’ll make sure to go through the recommended readings on responsible maintainership, version control, and issue procedures to strengthen my role as a contributor. I’ll also look into reviewing other projects in the queue and engage more with the community on Slack/IRC in #drupal-contribute.
I’m grateful for the guidance and for the reviewers’ time and effort in this process. Looking forward to contributing further and staying actively involved in the Drupal community!