Skip to content

Commit

Permalink
Handle SQL injection vulnerabilities within ObjectToSQLString (#3547)
Browse files Browse the repository at this point in the history
Co-authored-by: Alex Zaytsev <hazzik@gmail.com>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
  • Loading branch information
3 people authored Jul 2, 2024
1 parent 93b0d0e commit b4a69d1
Show file tree
Hide file tree
Showing 54 changed files with 1,105 additions and 78 deletions.
20 changes: 14 additions & 6 deletions doc/reference/modules/configuration.xml
Original file line number Diff line number Diff line change
Expand Up @@ -871,6 +871,20 @@ var session = sessions.OpenSession(conn);
</para>
</entry>
</row>
<row>
<entry>
<literal>escape_backslash_in_strings</literal>
</entry>
<entry>
Indicates if the database needs to have backslash escaped in string literals.
The default value is dialect dependant. That is <literal>false</literal> for
most dialects.
<para>
<emphasis role="strong">eg.</emphasis>
<literal>true</literal> | <literal>false</literal>
</para>
</entry>
</row>
<row>
<entry>
<literal>show_sql</literal>
Expand Down Expand Up @@ -1515,12 +1529,6 @@ in the parameter binding.</programlisting>
<entry><literal>NHibernate.Dialect.PostgreSQLDialect</literal></entry>
<entry></entry>
</row>
<row>
<entry>PostgreSQL</entry>
<entry><literal>NHibernate.Dialect.PostgreSQLDialect</literal></entry>
<entry>
</entry>
</row>
<row>
<entry>PostgreSQL 8.1</entry>
<entry><literal>NHibernate.Dialect.PostgreSQL81Dialect</literal></entry>
Expand Down
2 changes: 1 addition & 1 deletion src/NHibernate.Config.Templates/SapSQLAnywhere.cfg.xml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ for your own use before compiling tests in Visual Studio.
<property name="connection.connection_string">
UID=DBA;PWD=sql;Server=localhost;DBN=nhibernate;DBF=c:\nhibernate.db;ASTOP=No;Enlist=false;
</property>
<property name="dialect">NHibernate.Dialect.SybaseSQLAnywhere12Dialect</property>
<property name="dialect">NHibernate.Dialect.SapSQLAnywhere17Dialect</property>
<property name="query.substitutions">true=1;false=0</property>
</session-factory>
</hibernate-configuration>
Loading

0 comments on commit b4a69d1

Please sign in to comment.