Skip to content

Fix slice out of bound exception for xss rule and Fix logic to handle scenario like…#17

Merged
gkumarcertinia merged 2 commits into
certinia:mainfrom
gkumarcertinia:ASIST-fix-the-XSS-rule-failures-for-c1-unmanaged-code-scan
Apr 28, 2026
Merged

Fix slice out of bound exception for xss rule and Fix logic to handle scenario like…#17
gkumarcertinia merged 2 commits into
certinia:mainfrom
gkumarcertinia:ASIST-fix-the-XSS-rule-failures-for-c1-unmanaged-code-scan

Conversation

@gkumarcertinia
Copy link
Copy Markdown
Collaborator

@gkumarcertinia gkumarcertinia commented Apr 24, 2026

Considering scenario like:

......
<script id="MobileChatter" class="result ..........
...........
...........        // ASIST continue scan in script context which is fine 
..........
</script><script id="Default" class="  .............  // ASIST throw `runtime error: slice out of bound`.  Which is fixed in this PR
..............  // ASIST break script context here. Which is fixed in this PR
.............  
.........
  1. Fix runtime error: slice out of range

  2. Correct logic of ASIST code so that scanning continue in script/style context when a opening script/style tag found after a closing script/style tag in a same line, like the above given scenario.

@gkumarcertinia gkumarcertinia merged commit c422045 into certinia:main Apr 28, 2026
6 checks passed
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.

4 participants