1) SQL injection

Severity: High

CVSSv3:
7.9 [CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N/E:U/RL:O/RC:C] [PCI]

CVE-ID:
CVE-2019-20107

CWE-ID:
CWE-89 – Improper Neutralization of Special Elements used in an SQL Command (‘SQL Injection’)

Description

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

Mitigation

Update to version 1.9.20.

Vulnerable software versions

TestLink:
1.9.3, 1.9.4, 1.9.5, 1.9.6, 1.9.7, 1.9.8, 1.9.9, 1.9.10, 1.9.11, 1.9.12, 1.9.13, 1.9.14, 1.9.15, 1.9.16, 1.9.17, 1.9.18, 1.9.19

CPE
External links

http://mantis.testlink.org/view.php?id=8829http://mantis.testlink.org/view.php?id=8829#c29360https://github.com/TestLinkOpenSourceTRMS/testlink-code/commit/146b4f38010a48c36b7d9650060ca354c92ab4achttps://github.com/TestLinkOpenSourceTRMS/testlink-code/commit/7647a7b53ceab31524cfcfb3beb8435af0a30fc1https://github.com/TestLinkOpenSourceTRMS/testlink-code/commit/942c406fcee5d376235a264cb8a79300a0002d20https://github.com/TestLinkOpenSourceTRMS/testlink-code/commit/bcf7b971b5c88ea08d2dc47685f319be3b02cea8https://github.com/TestLinkOpenSourceTRMS/testlink-code/commit/d27690c6cb7708a6db0701b6428381d32d51495ahttps://github.com/TestLinkOpenSourceTRMS/testlink-code/commit/e2d88c9d7f8e02640ba65e5ff74b55d0399a53d0https://twitter.com/TLOpenSource/status/1212394020946751489

Q & A

Can this vulnerability be exploited remotely?

Yes. This vulnerability can be exploited by a remote non-authenticated attacker via the Internet.

Is there known malware, which exploits this vulnerability?

No. We are not aware of malware exploiting this vulnerability.

2) SQL injection

Severity: Medium

CVSSv3:
7.1 [CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N/E:U/RL:O/RC:C] [PCI]

CVE-ID:
CVE-2020-8841

CWE-ID:
CWE-89 – Improper Neutralization of Special Elements used in an SQL Command (‘SQL Injection’)

Description

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.

Mitigation

Install update from vendor’s website.

Vulnerable software versions

TestLink:
1.9.3, 1.9.4, 1.9.5, 1.9.6, 1.9.7, 1.9.8, 1.9.9, 1.9.10, 1.9.11, 1.9.12, 1.9.13, 1.9.14, 1.9.15, 1.9.16, 1.9.17, 1.9.18, 1.9.19

CPE
External links

https://github.com/TestLinkOpenSourceTRMS/testlink-code/pull/239
https://github.com/ver007/testlink-1.9.19-sqlinject

Q & A

Can this vulnerability be exploited remotely?

Yes. This vulnerability can be exploited by a remote authenticated user via the Internet.

Is there known malware, which exploits this vulnerability?

No. We are not aware of malware exploiting this vulnerability.





Source link

Write a comment:
*

Your email address will not be published.