OXAS-ADV-2023-0003: OX App Suite Security Advisory

Publisher: OX Software GmbH Publication Date: 2023-05-02
Current version: 1 Status: final
Severity: High

References

Vulnerabilities

Themes can be abused to inject script code for persistent XSS (CVE-2023-26445)

Description

Frontend themes are defined by user-controllable jslob settings and could point to a malicious resource which gets processed during login.

Internal reference: OXUIB-2282
CWE: CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
Discovery date: 2023-03-20

Product status

Last affected
Products CVSS-Vector CVSS Base Score
OX App Suite frontend 7.10.6-rev27 CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:N/A:L 5.4

Remediations

Vendor fix (2023-04-20)

We now sanitize the theme value and use a default fallback if no theme matches.

For products:

Threats

Exploit status

No publicly available exploits are known.

Impact

Malicious script code can be executed within the victims context. This can lead to session hijacking or triggering unwanted actions via the web interface and API. To exploit this an attacker would require temporary access to the users account or lure a user to a compromised account.

XSS using application passwords "lastDevice" property (CVE-2023-26446)

Description

The users clientID at "application passwords" was not sanitized or escaped before being added to DOM.

Internal reference: OXUIB-2283
CWE: CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
Discovery date: 2023-03-20

Product status

Last affected
Products CVSS-Vector CVSS Base Score
OX App Suite frontend 7.10.6-rev27 CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N 5.4
OX App Suite frontend 8.11 CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N 5.4

Remediations

Vendor fix (2023-04-20)

We now sanitize the user-controllable clientID parameter.

For products:

Threats

Exploit status

No publicly available exploits are known.

Impact

Malicious script code can be executed within the victims context. This can lead to session hijacking or triggering unwanted actions via the web interface and API. To exploit this an attacker would require temporary access to the users account or lure a user to a compromised account.

XSS in upsell portal widget (CVE-2023-26447)

Description

The "upsell" widget for the portal allows to specify a product description. This description taken from a user-controllable jslob did not get escaped before being added to DOM.

Internal reference: OXUIB-2284
CWE: CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
Discovery date: 2023-03-20

Product status

Last affected
Products CVSS-Vector CVSS Base Score
OX App Suite frontend 7.10.6-rev27 CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N 5.4

Remediations

Vendor fix (2023-04-20)

We now sanitize jslob content.

For products:

Threats

Exploit status

No publicly available exploits are known.

Impact

Malicious script code can be executed within the victims context. This can lead to session hijacking or triggering unwanted actions via the web interface and API. To exploit this an attacker would require temporary access to the users account or lure a user to a compromised account.

XSS via user-defined login/logout URL (CVE-2023-26448)

Description

Custom log-in and log-out locations are used-defined as jslob but were not checked to contain malicious protocol handlers.

Internal reference: OXUIB-2285
CWE: CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
Discovery date: 2023-03-20

Product status

Last affected
Products CVSS-Vector CVSS Base Score
OX App Suite frontend 7.10.6-rev27 CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N 5.4

Remediations

Vendor fix (2023-04-27)

We now sanitize jslob content for those locations to avoid redirects to malicious content.

For products:

Threats

Exploit status

No publicly available exploits are known.

Impact

Malicious script code can be executed within the victims context. This can lead to session hijacking or triggering unwanted actions via the web interface and API. To exploit this an attacker would require temporary access to the users account or lure a user to a compromised account.

XSS by returning user-defined content-type as Chat service resource (CVE-2023-26449)

Description

The "OX Chat" web service did not specify a media-type when processing responses by external resources.

Internal reference: OXUIB-2286
CWE: CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
Discovery date: 2023-03-20

Product status

Last affected
Products CVSS-Vector CVSS Base Score
OX App Suite frontend 7.10.6-rev27 CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N 5.4

Remediations

Vendor fix (2023-04-19)

We are now defining the accepted media-type to avoid code execution.

For products:

Threats

Exploit status

No publicly available exploits are known.

Impact

Malicious script code can be executed within the victims context. This can lead to session hijacking or triggering unwanted actions via the web interface and API. To exploit this an attacker would require temporary access to the users account or lure a user to a compromised account.

XSS using malicious Count service resource (CVE-2023-26450)

Description

The "OX Count" web service did not specify a media-type when processing responses by external resources.

Internal reference: OXUIB-2287
CWE: CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
Discovery date: 2023-03-20

Product status

Last affected
Products CVSS-Vector CVSS Base Score
OX App Suite frontend 7.10.6-rev27 CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N 5.4

Remediations

Vendor fix (2023-04-19)

We are now defining the accepted media-type to avoid code execution.

For products:

Threats

Exploit status

No publicly available exploits are known.

Impact

Malicious script code can be executed within the victims context. This can lead to session hijacking or triggering unwanted actions via the web interface and API. To exploit this an attacker would require temporary access to the users account or lure a user to a compromised account.

SSRF using DNS rebinding attacks (CVE-2023-26438)

Description

External service lookups for a number of protocols were vulnerable to a time-of-check/time-of-use (TOCTOU) weakness, involving the JDK DNS cache. Attackers that were timing DNS cache expiry correctly were able to inject configuration that would bypass existing network deny-lists.

Internal reference: MWB-1877
CWE: CWE-918: Server-Side Request Forgery (SSRF)
Discovery date: 2022-10-17

Product status

Last affected
Products CVSS-Vector CVSS Base Score
OX App Suite backend 7.10.6-rev42 CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N 4.3
OX App Suite backend 8.10 CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N 4.3

Remediations

Vendor fix (2023-04-27)

Improvements were made to include deny-lists not only during the check of the provided connection data, but also during use.

For products:

Threats

Exploit status

No publicly available exploits are known.

Impact

Attackers could exploit this weakness to discover the existence of restricted network infrastructure and service availability.

Mailfilter (SIEVE) rules accept control characters (CVE-2023-26430)

Description

Attackers with access to user accounts can inject arbitrary control characters to SIEVE mail-filter rules.

Internal reference: MWB-2020
CWE: CWE-77: Improper Neutralization of Special Elements used in a Command ('Command Injection')
Discovery date: 2023-01-23

Product status

Last affected
Products CVSS-Vector CVSS Base Score
OX App Suite backend 7.10.6-rev42 CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:N/I:L/A:N 3.5
OX App Suite backend 8.10 CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:N/I:L/A:N 3.5

Remediations

Vendor fix (2023-04-26)

We have added sanitization to all mail-filter APIs to avoid forwardning control characters to subsystems.

For products:

Acknowledgments

Threats

Exploit status

No publicly available exploits are known.

Impact

This could be abused to access SIEVE extension that are not allowed by App Suite or to inject rules which would break per-user filter processing, requiring manual cleanup of such rules.

Potentially malicious SQL injection when using full-text autocomplete (CVE-2023-26443)

Description

Full-text autocomplete search allows user-provided SQL syntax to be injected to SQL statements.

Internal reference: MWB-2086
CWE: CWE-89: Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')
Discovery date: 2023-03-14

Product status

Last affected
Products CVSS-Vector CVSS Base Score
OX App Suite backend 7.10.6-rev42 CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:C/C:L/I:L/A:L 5.5
OX App Suite backend 8.11 CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:C/C:L/I:L/A:L 5.5

Remediations

Vendor fix (2023-04-27)

We now properly encode single quotes for SQL FULLTEXT queries.

For products:

Acknowledgments

Threats

Exploit status

No publicly available exploits are known.

Impact

With existing sanitization in place, this can be abused to trigger benign SQL Exceptions but could potentially be escalated to a malicious SQL injection vulnerability.

oAuth provider uses predictable secret source, allows to take over any oAuth session (CVE-2023-26451)

Description

Functions with insufficient randomness were used to generate authorization tokens of the integrated oAuth Authorization Service.

Internal reference: MWB-2102
CWE: CWE-330: Use of Insufficiently Random Values
Discovery date: 2023-03-27

Product status

Last affected
Products CVSS-Vector CVSS Base Score
OX App Suite backend 8.11 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N 7.5

Remediations

Vendor fix (2023-04-28)

We have updated the implementation to use sources with sufficient randomness to generate authorization tokens.

For products:

Acknowledgments

Threats

Exploit status

No publicly available exploits are known.

Impact

Authorization codes were predictable for third parties and could be used to intercept and take over the client authorization process. As a result, other users accounts could be compromised. The oAuth Authorization Service is not enabled by default.

SQL Injection at Cacheservice "getObjects" API (CVE-2023-26439)

Description

The cacheservice API could be abused to inject parameters with SQL syntax which was insufficiently sanitized before getting executed as SQL statement.

Internal reference: DOCS-4726
CWE: CWE-89: Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')
Discovery date: 2023-02-13

Product status

Last affected
Products CVSS-Vector CVSS Base Score
OX App Suite office 8.10 CVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H 9.6

Remediations

Vendor fix (2023-03-14)

We have improved the input check for API calls and filter for potentially malicious content.

For products:

Acknowledgments

Threats

Exploit status

No publicly available exploits are known.

Impact

Attackers with access to a local or restricted network were able to perform arbitrary SQL queries, discovering other users cached data.

SQL Injection at Cacheservice "registerGroup" API (CVE-2023-26440)

Description

The cacheservice API could be abused to indirectly inject parameters with SQL syntax which was insufficiently sanitized and would later be executed when creating new cache groups.

Internal reference: DOCS-4727
CWE: CWE-89: Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')
Discovery date: 2023-02-13

Product status

Last affected
Products CVSS-Vector CVSS Base Score
OX App Suite office 8.10 CVSS:3.1/AV:A/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:H 8.3

Remediations

Vendor fix ()

We have improved the input check for API calls and filter for potentially malicious content.

For products:

Acknowledgments

Threats

Exploit status

No publicly available exploits are known.

Impact

Attackers with access to a local or restricted network could perform arbitrary SQL queries.

Cacheservices allows local file inclusion/removal through directory traversal (CVE-2023-26441)

Description

Cacheservice did not correctly check if relative cache object were pointing to the defined absolute location when accessing resources.

Internal reference: DOCS-4728
CWE: CWE-200: Exposure of Sensitive Information to an Unauthorized Actor
Discovery date: 2023-02-14

Product status

Last affected
Products CVSS-Vector CVSS Base Score
OX App Suite office 8.10 CVSS:3.1/AV:A/AC:H/PR:N/UI:N/S:C/C:H/I:N/A:L 6.9

Remediations

Vendor fix (2023-04-28)

We have improved path validation and make sure that any access is contained to the defined root directory.

For products:

Acknowledgments

Threats

Exploit status

No publicly available exploits are known.

Impact

An attacker with access to the database and a local or restricted network would be able to read arbitrary local file system resources that are accessible by the services system user account.

Cacheservice HTTP client follow redirect responses, allowing SSRF (CVE-2023-26442)

Description

In case Cacheservice was configured to use a sproxyd object-storage backend, it would follow HTTP redirects issued by that backend.

Internal reference: DOCS-4734
CWE: CWE-918: Server-Side Request Forgery (SSRF)
Discovery date: 2023-02-15

Product status

Last affected
Products CVSS-Vector CVSS Base Score
OX App Suite office 8.10 CVSS:3.1/AV:L/AC:H/PR:N/UI:N/S:C/C:L/I:N/A:N 3.2

Remediations

Vendor fix ()

We have disabled the ability to follow HTTP redirects when connecting to sproxyd resources.

For products:

Acknowledgments

Threats

Exploit status

No publicly available exploits are known.

Impact

An attacker with access to a local or restricted network with the capability to intercept and replay HTTP requests to sproxyd (or who is in control of the sproxyd service) could perform a server-side request-forgery attack and make Cacheservice connect to unexpected resources.