fleet
fleet copied to clipboard
Bug: CPE mapping errors on unicode app names
Fleet version: 4.45.0
Web browser and operating system: Any
💥 Actual behavior
CPE mapping job fails on unicode strings with a sqlite fts5 error:
level=error ts=2024-05-13T12:00:56.67195188Z cron=vulnerabilities msg="error translating to CPE, skipping" software=网易有道词典.app version=9.0.1 source=apps err="getting cpes for: 网易有道词典.app: fts5: syntax error near \"\""
level=error ts=2024-05-13T12:00:42.73579869Z cron=vulnerabilities msg="error translating to CPE, skipping" software="Снежные Ветки" version=1.6 source=chrome_extensions err="getting cpes for: Снежные Ветки: fts5: syntax error near \"\""
level=error ts=2024-05-13T12:00:44.511569729Z cron=vulnerabilities msg="error translating to CPE, skipping" software=نوار.app version=5481.177 source=apps err="getting cpes for: نوار.app: fts5: syntax error near \"\""
🧑💻 Steps to reproduce
- Install fleetd on a host with Unicode app names (or chrome extensions)
- Allow CPE mapping job to run.
🕯️ More info (optional)
Reported by a prospect.
the error code here was moved to a debug log in 4.47.0, but is the ask here to support unicode app names in vulnerability processing?
cc: @noahtalerman @rachaelshaw We are not sure what's needed to estimate. Do we want to support unicode (foreign name applications )? (rough estimation --> large) Maybe only drop anything with unicode?
Hey @sharon-fdm @zwass and @mostlikelee, here's docs on what Fleet supports:
So, I think adding support for Unicode is a feature request (not a bug).
Zach, when you get the chance, can you please transform this issue into a feature request or close this and file a separate issue? Thanks :)
Thanks @noahtalerman. I'll remove it from our board for now and will wait for further instructions. @mostlikelee we do need a graceful ignoring of all non-ASCII if not existing at the moment though. cc: @zwass
In that case, I believe we can close this issue as a duplicate to https://github.com/fleetdm/fleet/issues/16859
Thanks @mostlikelee, closing as dupe of #16859 and following up with prospect about whether they want a feature request.
Unicode bug removed, Fleet, now a bridge, unites, In all tongues, secured.