I have my Drupal 7 locked down for uploads based on MIME types and even files that have changed their file names to look like other MIME types. However, we had a security audit done and they want us to be locked down for magic bytes/file signatures. I cannot find any way to do this. Does anyone have any ideas?
If not I guess I guess I will have to write a custom hook.
I am very new to Drupal development, so forgive me if I don't phrase everything in my question quite right.
I am developing a Drupal 8 module with a multistep form / wizard that will allow students to select courses based on their preferences (answered through questions in the first stage of the wizard). Since I don't necessarily want the high school to worry about creating user accounts for all students, these users will typically be anonymous.
I just had a security audit done of my Drupal 7 site and they were able to demonstrate the ability to run a theoretical XSS attack from a plain text field using Java Script. I have plain text fields on a node that I am altering with JS in my module to validate input but not to change display. If you do a search for the node the JS will execute and in their example will show a pop-up.
I must be missing something here because plain text should be escaping JavaScript. Right?
I've started the processes of converting my Drupal 7 site into Drupal 8. I'm having a lot of trouble finding the documentation for displaying a list of nodes with my custom module. I'm able to find the list of node ids and I can pass them to loadMultiple like this: