Skip to content
openrefineGHSA-3pg4-qwc8-426r

OpenRefine leaks Google API credentials in releases

HighPublished Oct 24, 2024 · updated Dec 4, 2024

GitHub advisory

Affected versions

PackageAffectedFixed in
org.openrefine:openrefine
Maven
< 3.8.33.8.3
Details and references

### Impact OpenRefine releases contain Google API authentication keys ("client id" and "client secret") which can be extracted from released artifacts. For instance, download the package for OpenRefine 3.8.2 on linux. It contains the file `openrefine-3.8.2/webapp/extensions/gdata/module/MOD-INF/lib/openrefine-gdata.jar`, which can be extracted. This archive then contains the file `com/google/refine/extension/gdata/GoogleAPIExtension.java`, which contains the following lines: ```java // For a production release, the second parameter (default value) can be set // for the following three properties (client_id, client_secret, and API key) to // the production values from the Google API console private static final String CLIENT_ID = System.getProperty("ext.gdata.clientid", new String(Base64.getDecoder().decode("ODk1NTU1ODQzNjMwLWhkZWwyN3NxMDM5ZjFwMmZ0aGE2M2VvcWFpY2JwamZoLmFwcHMuZ29vZ2xldXNlcmNvbnRlbnQuY29t"))); private static final String CLIENT_SECRET = System.getProperty("ext.gdata.clientsecret", new String(Base64.getDecoder().decode("R2V2TnZiTnA2a3IxeDd5c3VZNENmYlNo"))); ``` The Base64 encoding can then be decoded to obtain the client id and client secret. Those credentials can then be used by other applications to request access to Google accounts, pretending they are OpenRefine. This assumes that they also get access to the user access tokens, which this vulnerability doesn't expose by itself. ### Patches The bundled credentials should be revoked. ### Workarounds Users should revoke access to their Google account if they have connected it to OpenRefine.

Severity from
GitHub (reviewed advisory)
Weakness
CWE-522

More openrefine advisories

All
DateAdvisory
Oct 242024OpenRefine has a reflected cross-site scripting vulnerability (XSS) from POST request in ExportRowsCommand
CVE-2024-47880High8.1fixed in 3.8.3
Oct 242024OpenRefine's error page lacks escaping, leading to potential Cross-site Scripting on import of malicious project
CVE-2024-47882Medium5.9fixed in 3.8.3
Oct 242024OpenRefine has a path traversal in LoadLanguageCommand
CVE-2024-49760High7.1fixed in 3.8.3

Critical advisories by email

Wednesdays: the week’s critical and high advisories in the AI and data stack, with the fixed versions. Only in weeks that have some.

Double opt-in. Unsubscribe any time.