Skip to content
This repository has been archived by the owner on Dec 14, 2023. It is now read-only.

Security threat due to insecure functions used in lecore.m file. #43

Open
Priya1794 opened this issue Aug 21, 2020 · 0 comments
Open

Security threat due to insecure functions used in lecore.m file. #43

Priya1794 opened this issue Aug 21, 2020 · 0 comments

Comments

@Priya1794
Copy link

Priya1794 commented Aug 21, 2020

Hi,

I am getting security threat in below code for lecore.m class https://github.com/LogentriesCommunity/le_ios/blob/master/lelib/lecore.m

There are 2 occurrences of "strlen()" method which is an insecure function acc to security tool.

In void le_log(const char message)* method, there is a line -
size_t length = strlen(message);

In bool is_valid_token(const char * token,size_t token_length)* method , there is a line
length = strlen(token);

Below is the issue description and reference links from security team.

Issue description : Use of insecure functions/potential dangerous functions
Reference link: https://cwe.mitre.org/data/definitions/676.html
This would explain why SECURITY TEAM is recommending the change of these functions.

Please provide solution for this as soon as possible as it is very urgent.

Thanks and Regards,
Priya Mehndiratta

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant