Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Usage of Insecure random generator (Instances of java.util.Random) found in Testing. #435

Open
yugalOneStack opened this issue Mar 14, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@yugalOneStack
Copy link

Environment

OS: macOS 14.3.1
CPU: (8) arm64 Apple M3
Memory: 76.84 MB / 8.00 GB
Shell: 5.9 - /bin/zsh
Binaries:
Node: 21.6.1 - /opt/homebrew/bin/node
Yarn: 1.22.21 - /opt/homebrew/bin/yarn
npm: 10.2.4 - /opt/homebrew/bin/npm
Watchman: 2024.01.22.00 - /opt/homebrew/bin/watchman
Managers:
CocoaPods: 1.15.2 - /opt/homebrew/bin/pod
SDKs:
iOS SDK:
Platforms: DriverKit 23.2, iOS 17.2, macOS 14.2, tvOS 17.2, visionOS 1.0, watchOS 10.2
Android SDK: Not Found
IDEs:
Android Studio: 2023.1 AI-231.9392.1.2311.11330709
Xcode: 15.2/15C500b - /usr/bin/xcodebuild
Languages:
Java: 17.0.10 - /usr/bin/javac
npmPackages:
@react-native-community/cli: Not Found
react: 18.1.0 => 18.1.0
react-native: 0.70.6 => 0.70.6
react-native-macos: Not Found
npmGlobalPackages:
react-native: Not Found

Platforms

Android

Versions

Please add the used versions/branches

  • Android: 1.1.4
  • react-native-geolocation-service: 5.3.1
  • react-native: 0.70.6
  • react:18.1.0

Description

In Testing we found an issue:

Instances of java.util.Random are found and it is not cryptographically secure. Consider instead using SecureRandom to get a cryptographically secure pseudo-random number generator.

It has been identified that the app is using Instances of java.util.Random in below mentioned java File.

FusedLocationProvider.java
bb/o.java
dd/b0.java
o1/a.java
rd/d.java
rd/h.java
uc/a.java
uc/b.java
vc/a.java

Expected Results

using SecureRandom to get a cryptographically secure pseudo-random number generator.

@yugalOneStack yugalOneStack added the bug Something isn't working label Mar 14, 2024
@Dat-Mobile
Copy link

Can anyone address this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants