[CSHARP-2958] Use StringComparison.Ordinal throughout driver Created: 08/Feb/20  Updated: 28/Oct/23  Resolved: 11/Mar/20

Status: Closed
Project: C# Driver
Component/s: None
Affects Version/s: None
Fix Version/s: 2.11.0

Type: Bug Priority: Major - P3
Reporter: Dmitry Lukyanov (Inactive) Assignee: Dmitry Lukyanov (Inactive)
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 Description   

This ticket is a continuation of the ticket CSHARP-2928 where we found that ScramShaAuthenticator uses StartWith without passing StringComparison.Ordinal.

Since it's not the first time when we faced with this issue, we need to research whether we have similar problems in other code or no.



 Comments   
Comment by Githook User [ 11/Mar/20 ]

Author:

{'name': 'DmitryLukyanov', 'username': 'DmitryLukyanov', 'email': 'dmitry.lukyanov@mongodb.com'}

Message: CSHARP-2958: Research possible places when we use string comparison in an unsafe way.
Branch: master
https://github.com/mongodb/mongo-csharp-driver/commit/0b186abdec1c6952effbd247d017d22fdcc5fbce

Generated at Wed Feb 07 21:43:58 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.