SB2020031001 - Multiple vulnerabilities in TestLink
Published: March 10, 2020
Breakdown by Severity
- Low
- Medium
- High
- Critical
Description
This security bulletin contains information about 2 secuirty vulnerabilities.
1) SQL injection (CVE-ID: CVE-2019-20107)
The vulnerability allows a remote attacker to execute arbitrary SQL queries in database.
The vulnerability exists due to insufficient sanitization of user-supplied data in multiple scripts. A remote attacker can send a specially crafted request to the affected application and execute arbitrary SQL commands within the application database.
Successful exploitation of this vulnerability may allow a remote attacker to read, delete, modify data in database and gain complete control over the affected application.
List of affected parameters and scripts:
- "tproject_id" parameter in keywordsView.php
- "req_spec_id" parameter in reqSpecCompareRevisions.php
- "requirement_id" parameter in reqCompareVersions.php
- "build_id" parameter in planUpdateTC.php
- "tplan_id" parameter in newest_tcversions.php
- "tplan_id" parameter in tcCreatedPerUserGUI.php
- "tcase_id" parameter in tcAssign2Tplan.php
- "testcase_id" parameter in tcCompareVersions.php
2) SQL injection (CVE-ID: CVE-2020-8841)
The vulnerability allows a remote attacker to execute arbitrary SQL queries in database.
The vulnerability exists due to insufficient sanitization of user-supplied data passed via the "relation_type" parameter in lib/requirements/reqSearch.php. A remote authenticated attacker can send a specially crafted request to the affected application and execute arbitrary SQL commands within the application database.
Successful exploitation of this vulnerability may allow a remote attacker to read, delete, modify data in database and gain complete control over the affected application.
Remediation
Install update from vendor's website.
References
- http://mantis.testlink.org/view.php?id=8829
- http://mantis.testlink.org/view.php?id=8829#c29360
- https://github.com/TestLinkOpenSourceTRMS/testlink-code/commit/146b4f38010a48c36b7d9650060ca354c92ab4ac
- https://github.com/TestLinkOpenSourceTRMS/testlink-code/commit/7647a7b53ceab31524cfcfb3beb8435af0a30fc1
- https://github.com/TestLinkOpenSourceTRMS/testlink-code/commit/942c406fcee5d376235a264cb8a79300a0002d20
- https://github.com/TestLinkOpenSourceTRMS/testlink-code/commit/bcf7b971b5c88ea08d2dc47685f319be3b02cea8
- https://github.com/TestLinkOpenSourceTRMS/testlink-code/commit/d27690c6cb7708a6db0701b6428381d32d51495a
- https://github.com/TestLinkOpenSourceTRMS/testlink-code/commit/e2d88c9d7f8e02640ba65e5ff74b55d0399a53d0
- https://twitter.com/TLOpenSource/status/1212394020946751489
- https://github.com/TestLinkOpenSourceTRMS/testlink-code/pull/239
- https://github.com/ver007/testlink-1.9.19-sqlinject