fix: critical security issues from code review #25
No reviewers
Labels
No labels
bug
bug
critical
documentation
duplicate
enhancement
enhancement
feature
good first issue
help wanted
invalid
question
security
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
eddy/Project_SylDa!25
Loading…
Reference in a new issue
No description provided.
Delete branch "fix/code-review-critical-issues"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Samenvatting
Deze PR lost 4 kritieke beveiligingsissues op die naar boven kwamen tijdens code review.
Issues opgelost
Issue 1: Thread Safety Race Condition
Bestand:
BleRelayManager.ktECDH notify buffer werd zonder synchronisatie benaderd door meerdere threads.
Fix:
@Synchronizedmethoden voor thread-safe toegang.Issue 2: Hard-coded EC Curve Parameters
Bestand:
BleRelayManager.ktsecp256r1 parameters handmatig geconstrueerd - foutgevoelig.
Fix:
X509EncodedKeySpecmet proper SPKI encoding.Issue 3: Sensitive Data Exposure
Bestand:
ecdh_helper.hshared_secretenaes_keywaren publiek toegankelijk.Fix: Members naar
private, nieuwe const gettergetAesKey().Issue 4: Unencrypted Credential Storage
Bestand:
PrefsHelper.kt,BleRelayManager.kt,SettingsActivity.ktPSK en UUID in plaintext SharedPreferences.
Fix: Migratie naar
EncryptedSharedPreferencesmet automatic fallback.Build status
Pull request closed