Bound FreeOTP backup PBKDF iteration count
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 75/100
Research direction
Read FreeOtpImporter.EncryptedState and follow how mIterations reaches PBKDFTask.Params and PBKDFTask.deriveKey. Compare the validation in the andOTP importer and the bundled FreeOTP 2 fixtures, which use 100,000 iterations. Done when FreeOTP imports reject non-positive or excessive counts while valid fixtures still work.
Written by the indexing model from the issue text.
Description
Summary
The FreeOTP 2 importer reads the backup's mIterations value and passes it to PBKDF2 without an application-level upper bound. A sufficiently large positive value could cause unusually high CPU use or a long delay during import, depending on the device and crypto provider. I have not measured this behavior or established a practical threshold, so impact and severity remain unconfirmed.
Scope / trigger
This requires the user to select and import a crafted FreeOTP backup. I have not created or tested such a backup. This report is limited to a potential import-time availability impact; it does not claim vault confidentiality loss or code execution.
Source evidence
FreeOtpImporter.EncryptedStatereadsmIterationsfrom the backup and supplies it toPBKDFTask.Params.PBKDFTask.deriveKeypasses the count to the PBKDF2 implementation.- The andOTP importer separately validates its imported PBKDF count and rejects counts above 10,000,000.
- The bundled FreeOTP 2 test fixtures use 100,000 iterations.
Suggested consideration
Consider validating FreeOTP's iteration count against a format-compatible upper bound before starting key derivation, and handling invalid counts as an import error. This report is based on source inspection; runtime impact is unverified.
- Dominant language
- Java
- Stars
- 13.7k
- Forks
- 626
- Avg merge
- 10d 12m
- Merged PRs (30d)
- 2
Getting set up
- No Dockerfile or Docker Compose file
- No pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from beemdevelopment/Aegis
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
beemdevelopment/Aegis#1870 ·
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
beemdevelopment/Aegis#1867 ·
-
proposal
Difficulty 1/5 Under an hour Newbie friendliness 82/100
beemdevelopment/Aegis#1861 · 1 reaction ·
-
proposal proposal-accepted
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
beemdevelopment/Aegis#1856 ·
-
proposal
Difficulty 2/5 1-3 hours Newbie friendliness 85/100
beemdevelopment/Aegis#1843 · 2 comments · 1 reaction ·
All issues in beemdevelopment/Aegis
Similar issues
-
area: ui priority: medium
Difficulty 2/5 1-3 hours Newbie friendliness 83/100
tetsuji16/microProject#1721 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Maintainers usually reply within 2 days
-
The engine's "loaded, but had errors" message leaves out which library and line each error is inOpen
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
cqframework/clinical_quality_language#1980 ·
Maintainers usually reply within 3 days
-
[Bug] "Configure Colota" opens Colota with "Invalid configuration: No configuration data in URL"Open
Difficulty 1/5 1-3 hours Newbie friendliness 87/100
dedicatedcode/reitti#1445 ·
Maintainers usually reply within 1 day
-
backlog kind/bug
Difficulty 2/5 1-3 hours Newbie friendliness 67/100
TencentBlueKing/bk-job#4642 ·
Maintainers usually reply within 1 day