Skip to content
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

SM02383: Fix Incomplete string escaping or encoding #2570

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

keshava-kandikonda
Copy link
Collaborator

@keshava-kandikonda keshava-kandikonda commented Feb 27, 2025

  • [*] The purpose of this PR is explained in this message or in an issue. If an issue, please include a reference as #<issue_number>.
  • [*] Tests are included and/or updated for code changes.
  • [*] Proper license headers are included in each file.

Description
This PR addresses the CodeQL issues -
(https://liquid.microsoft.com/Web/Object/Read/ScanningToolWarnings/Requirements/CodeQL.SM02383#Zguide)
0feb1226-cbcf-46a8-a0d9-840b305b5fa9
309a78ad-f925-4a79-b174-e037408ae9a6
465b4852-7047-42f1-ab91-64db039708f8
7b2d7268-f410-4a06-959e-6c59f986b6f3
82234977-e8b5-4c11-aeeb-1410ac9bdef4
8fccf079-649e-43e6-8f1e-901457a2b767
c34a07d4-87ac-4f18-b13a-96c3d358998f

in the jquery.validate.js and DateTimeShortcuts.js files.

The identified issue was related to untrusted input, which is a common technique for preventing injection attacks.

Changes Made
Updated the jquery.validate.js file to properly escape and encode strings used in HTML attributes.
Updated the DateTimeShortcuts.js file to properly escape and encode strings used in HTML attributes.
Ensured that all instances of potentially unsafe string concatenation were replaced with properly escaped and encoded strings to avoid potential issues.

@keshava-kandikonda keshava-kandikonda requested a review from a team as a code owner February 27, 2025 09:19
@keshava-kandikonda keshava-kandikonda self-assigned this Feb 27, 2025
@keshava-kandikonda keshava-kandikonda changed the title CodeQL [SM02383]: Fix Incomplete string escaping or encoding issue SM02383: Fix Incomplete string escaping or encoding Feb 27, 2025
@keshava-kandikonda
Copy link
Collaborator Author

@microsoft-github-policy-service agree company="Microsoft"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants