-
Notifications
You must be signed in to change notification settings - Fork 24.4k
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
CC_MD5 is deprecated (in addition to being broken) #29590
Comments
Hi @jonthanon some history for this. RCTAsyncLocalStorage eventually became the community module async-storage as part of the Lean Core efforts; however, the module stayed in React Native core as Facebook has a dependency on it and needs to migrate out of it internally. There are two options that could be taken Second option will help you out a bit quicker to resolve your security concerns. |
Unfortunately we haven't gotten around to cleaning up the repo yet. How did the open source version of async storage deal with the same issue? Can we backport the fix for now? |
@cpojer It looks like async-storage also depends on the I'll file an issue with them and that should be back ported to core. |
@safaiyeh Awesome, thanks for the info. I'll move my questions to the new community thread. |
Hey there, it looks like there has been no activity on this issue recently. Has the issue been fixed, or does it still require the community's attention? This issue may be closed if no further activity occurs. You may also label this issue as a "Discussion" or add it to the "Backlog" and I will leave it open. Thank you for your contributions. |
Nope, still repros in 0.63.4. See also react-native-async-storage/async-storage#415, which is linked above and is where the initial fix is (theoretically) happening. |
This issue is stale because it has been open 180 days with no activity. Remove stale label or comment or this will be closed in 7 days. |
This issue was closed because it has been stalled for 7 days with no activity. |
Description
CC_MD5
is used inRCTUtils
' functionRCTMD5Hash(NSString *string)
(here), which is used inRCTAsyncLocalStorage.mm
andRNCAsyncStorage.m
to get a file name. My company's security team has requested we remove all use of MD5, regardless of whether it's used for cryptographic purposes or called by our code. In addition to being cryptographically insecure (though that isn't relevant here since it doesn't seem to be used for cryptographic purposes),CC_MD5
was deprecated by Apple in iOS 13.React Native version:
0.63.2 (based on running
npx react-native info
at the time of opening this issue)Steps To Reproduce
run-ios
.Expected Results
You shouldn't get any warnings, but for the scope of this issue, you shouldn't get any warnings about
CC_MD5
being deprecated.Snack, code example, screenshot, or link to a repository:
Here's the resulting error you'll get in the issue navigator on the left.
The text was updated successfully, but these errors were encountered: