Skip to content

9.26

Compare
Choose a tag to compare
@SonarTech SonarTech released this 31 May 11:42
e26370e

New Rules

  • 8871 - [C#] New rule S6932: Use model binding instead of reading raw request data
  • 8992 - [C#] New rule S4347: Secure random number generators must not output predictable values
  • 8996 - [C#] New rule S6781: JWT secret keys should not be disclosed
  • 8982 - [C#] New rule S6377: XML signatures should be verified securely
  • 8998 - [C#] New rule S5344: Passwords should not be stored in plain-text or with a fast hashing algorithm

Bug Fixes

  • 8577 - Fix S2234 Bug: AD0001 is thrown due to referencing a location outside of the current compilation

Improvements

  • 9282 - [C#] S6964: Issue is reported on the attribute instead of the property

False Positive

  • 9360 - [C#] Fix S6964 FP: Properties decorated with the [BindNever] attribute
  • 9337 - [C#] Fix S6964 FP: Add more attributes to the exclusions
  • 9336 - [C#] Fix S6966 FP: Don't raise on XmlReader and XmlWriter methods
  • 9331 - [C#] Fix S6964 FP: Property with a default value
  • 9285 - [C#] Fix S6964 FP: Do not raise in properties with required modifier
  • 9284 - [C#] Fix S6964 FP: Should not raise for reference properties in nullable context
  • 9275 - [C#] Fix S6964 FP: Don't raise on properties annotated with the JsonRequiredAttribute
  • 9269 - [C#] Fix S6966 FP: EntityFrameworks DbContext/DBSet Add/AddRange methods are preferred over their Async counterpart
  • 9265 - [C#] Fix S6966 FP: MongoDB Find can not be replaced by FindAsync
  • 9252 - [C#] Fix S6934 FP: Abstract Controller base class
  • 8985 - [C#] Fix S6934 FP: Attributes implementing IRouteTemplateProvider or inheriting from RouteAttribute

False Negative

  • 9263 - [C#] Fix S6964 FN: Rule should raise in case of value type property annotated with RequiredAttribute