-
Notifications
You must be signed in to change notification settings - Fork 109
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Updated the "Hidden Input Field Detection at Response Level (Passive)" Finding #231
base: main
Are you sure you want to change the base?
Conversation
- Updated regex to look for type="hidden" in an input field wherever it is in that hidden HTML element. - Included detection for style="display: none;" - Updated descriptions for detail & remediation.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for the additional validation that you've added to this BCheck.
We have some feedback around the styling of the issue detail and remediation advice to make this easier to read.
|
||
define: | ||
|
||
# Issue Details: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Splitting the issue details and remediation advice into small chunks makes this code difficult to read. Can you please inline these into the report issue:
block.
define: | ||
|
||
# Issue Details: | ||
id_01 = `- An '<input>' HTML field with the 'type="hidden"' or 'style="display: none;"' attribute has been detected.\n - This HTML field may be suseptible to XSS injections.` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Small typo: susceptible
ir_06 = `\n > Libraries like 'DOMPurify', 'Helmet', & 'ESAPI' exist to automate detection of illicit characters & character types.` | ||
ir_07 = `\n\n3. RESPONSE: If unapproved characters become detected, either 'REJECT this payload' immediately OR 'SANITIZE & REEVALUATE this payload'.` | ||
ir_08 = `\n > REJECT: Deny data transferal from this payload & send a response which indicates that rejection has occurred.` | ||
ir_09 = `\n > SANITIZE & REEVALUATE: Perform sanatization on non-whitelisted characters once to convert these values into safer alternatives.` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Small typo: sanitization
ir_09a = ` Then reevaluate the payload for illicit characters again & REJECT this time if unsafe.` | ||
ir_10 = `\n >> This practice should be tried if 'necessary' content appears expected to possess known-illicit characters (& this functionality cannot be rewritten).` | ||
ir_11 = `\n\n4. ENCODE: If approved, this application must encode all HTML metacharacters contained within user input whenever this content would be copied directly into an HTTP webpage.` | ||
ir_12 = `\n > For example: '<' becomes '<', '>' becomes '>', '&' becomes '&', '"' becomes '"', & etcetera.` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Small typo: No need for the "& etcetera." - this can just be "etc." or "et cetera."
Overview
<input>
hastype="hidden"
as its very first attribute.style="display: none;"
Ask: As this is a significant update to a pre-existing bcheck file, please let me know what the correct syntax is for multiple authors.
BCheck Contributions