# Code review for CWE-89: SQL Injection Post-authentication problem\_encounter

**URL:** <https://community.open-emr.org/t/code-review-for-cwe-89-sql-injection-post-authentication-problem-encounter/6997>\
**Category:** OpenEMR Development\
**Created:** [July 11, 2015, 6:21pm UTC](https://community.open-emr.org/t/code-review-for-cwe-89-sql-injection-post-authentication-problem-encounter/6997 "2015-07-11T18:21:34Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![system](https://discourse-uploads-openemr.s3.dualstack.us-east-1.amazonaws.com/original/2X/b/bb9e4e8ae2ea7faac2e952fd9e38a3ce03aac403.png) [@system](https://community.open-emr.org/u/system)\
**Post date:** [July 11, 2015, 6:21pm UTC](https://community.open-emr.org/t/code-review-for-cwe-89-sql-injection-post-authentication-problem-encounter/6997/1 "2015-07-11T18:21:34Z")

</div>

**[robertovasquez](https://sourceforge.net/u/robertovasquez/)** wrote on [Saturday, July 11, 2015](https://sourceforge.net/p/openemr/discussion/202506/thread/b93d2c2c/#b25b):

Lines 45 and 56:form\_pid POST parameter is passed to queries unescaped

> <https://github.com/robertogagliotta/openemr/commit/8aed82f952d6a1a8fbb1383b0db82df4e6fe64a8>
