Dimillian / Dimillian/IceCubesApp

Bug: DeepL client secret is available in plain-text from the macOS app

Open
#1,778 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug
Dominant language
Swift
Stars
7.1k
Forks
720
PR merge metrics
No merged PRs in 30d

Description

Environment:

  • OS: macOS 14.2.1 (23C71)
  • IceCubesApp version: Version 1.9.18 (2199)

Description

IceCubesApp uses the file Secret.plist to store the Client-Secret used for DeepL API access but this file is bundled using the xml1 plist format which is human readable XML as shown in the following screenshot:

Screenshot 2023-12-27 at 15 48 55@2x

I know no-one likes to have to store client secrets in their application but in this case it would at least be worth to use the binary1 format to make the key less easy to extract.

All it would take is an XCode build step that runs plutil -convert binary1 Secret.plist.
No changes to the code or anything else required (in fact you can convert the current Secret.plist in the MAS version and it works all the same).

Related Issues

  • none I could find

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the bundled Secret.plist in the IceCubesApp macOS build and review the Xcode build steps. Add the reported plutil conversion to binary1, then verify that the packaged app contains the binary plist and that DeepL API access still works.

Written by the indexing model from the issue text.

Assessment

Tech stack
swift
Domain
build-system, security
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
55/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.