NHibernate SQL injection vulnerability in discriminator mappings, static fields referenced in HQL, and some utilities
A SQL injection vulnerability exists in some types implementing ILiteralType.ObjectToSQLString. Callers of these methods are exposed to the vulnerability, which includes: Mappings using inheritance with discriminator values: The discriminator value could be written in the mapping in a way exploiting the vulnerability of the associated discriminator type, if that type is among the vulnerable ones. The current culture settings for formatting the discriminator value type could be altered in a …