GHSA-79rg-7mv3-jrr5

Suggest an improvement
Source
https://github.com/advisories/GHSA-79rg-7mv3-jrr5
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2021/03/GHSA-79rg-7mv3-jrr5/GHSA-79rg-7mv3-jrr5.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-79rg-7mv3-jrr5
Aliases
Published
2021-03-23T22:48:01Z
Modified
2023-11-08T04:04:43.912310Z
Severity
  • 7.7 (High) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:N/I:H/A:N CVSS Calculator
Summary
Rating Script Service expose XWiki to SQL injection
Details

Impact

This issue impacts only XWiki with the Ratings API installed. The Rating Script Service expose an API to perform SQL requests without escaping the from and where search arguments. This might lead to an SQL script injection quite easily for any user having Script rights on XWiki.

Patches

The problem has been patched in XWiki 12.9RC1.

Workarounds

The only workaround besides upgrading XWiki would be to uninstall the Ratings API in XWiki from the Extension Manager.

References

https://jira.xwiki.org/browse/XWIKI-17662

For more information

If you have any questions or comments about this advisory: * Open an issue in Jira XWiki * Email us at our security mailing list

Database specific
{
    "nvd_published_at": "2021-03-23T23:15:00Z",
    "github_reviewed_at": "2021-03-23T22:34:44Z",
    "severity": "HIGH",
    "github_reviewed": true,
    "cwe_ids": [
        "CWE-89"
    ]
}
References

Affected packages

Maven / org.xwiki.platform:xwiki-platform-ratings-api

Package

Name
org.xwiki.platform:xwiki-platform-ratings-api
View open source insights on deps.dev
Purl
pkg:maven/org.xwiki.platform/xwiki-platform-ratings-api

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
12.9