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

SLCORE-1144 Fix SSF-699 #1230

Merged
merged 1 commit into from
Jan 29, 2025
Merged

SLCORE-1144 Fix SSF-699 #1230

merged 1 commit into from
Jan 29, 2025

Conversation

nquinquenel
Copy link
Member

@nquinquenel nquinquenel commented Jan 27, 2025

@nquinquenel nquinquenel marked this pull request as ready for review January 28, 2025 10:22
Copy link
Contributor

@damien-urruty-sonarsource damien-urruty-sonarsource left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It would be interesting to check if there are other Unicode problematic characters. Also should the fix be applied to other inputs received by the embedded server?

@nquinquenel
Copy link
Member Author

nquinquenel commented Jan 29, 2025

It would be interesting to check if there are other Unicode problematic characters.

There are many documentation (OWASP, unicode.org), on this subject, and I feel like there is no easy and straightforward solution regarding Unicode validation. Depending on what kind of text we expect, we could allow or disallow many things; the risk is that you could have false positives that would break the AI-generated code. I'm not strongly opinionated, but I'd tend to go easy for now on the validation.

@nquinquenel
Copy link
Member Author

Also should the fix be applied to other inputs received by the embedded server?

The only inputs received by the embedded server that are shown to the client are the fix suggestions and the branch names in some notification titles. I think the only attack vector is when showing and applying a fix suggestion.

@nquinquenel nquinquenel merged commit 32b2c25 into master Jan 29, 2025
11 checks passed
@nquinquenel nquinquenel deleted the bug/nq/SSF-699 branch January 29, 2025 13:19
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