-
Notifications
You must be signed in to change notification settings - Fork 0
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
bugfix: sunitaize user input #56
Conversation
WalkthroughThe recent update enhances security by introducing a middleware that sanitizes incoming HTTP requests to prevent XSS attacks. It limits the size of request bodies and escapes certain characters in POST, PUT, and PATCH methods. Additionally, JavaScript files have been updated to escape HTML tags, further safeguarding the application from potential injection vulnerabilities. Changes
Poem
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (invoked as PR comments)
Additionally, you can add CodeRabbit Configration File (
|
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.
Review Status
Actionable comments generated: 4
Configuration used: .coderabbit.yaml
Files selected for processing (6)
- internal/server/server.go (1 hunks)
- pkg/middleware/sanitizer.go (1 hunks)
- pkg/middleware/sanitizer_test.go (1 hunks)
- static/js/admin_iam_role_filtering.js (1 hunks)
- static/js/admin_user.js (2 hunks)
- static/js/request_form.js (1 hunks)
Files skipped from review due to trivial changes (2)
- internal/server/server.go
- static/js/admin_user.js
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.
Review Status
Actionable comments generated: 0
Configuration used: .coderabbit.yaml
Files selected for processing (3)
- pkg/middleware/sanitizer.go (1 hunks)
- static/js/admin_iam_role_filtering.js (1 hunks)
- static/js/request_form.js (1 hunks)
Files skipped from review as they are similar to previous changes (3)
- pkg/middleware/sanitizer.go
- static/js/admin_iam_role_filtering.js
- static/js/request_form.js
f202999
to
cd75be6
Compare
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.
Review Status
Actionable comments generated: 0
Configuration used: .coderabbit.yaml
Files selected for processing (4)
- pkg/middleware/sanitizer.go (1 hunks)
- pkg/middleware/sanitizer_test.go (1 hunks)
- static/js/admin_iam_role_filtering.js (1 hunks)
- static/js/request_form.js (1 hunks)
Files skipped from review as they are similar to previous changes (4)
- pkg/middleware/sanitizer.go
- pkg/middleware/sanitizer_test.go
- static/js/admin_iam_role_filtering.js
- static/js/request_form.js
restrict user input like (
<
,>
)Summary by CodeRabbit
New Features
Bug Fixes