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

SVG path in React component is detected and constants as hard coded credentials #58

Open
pindamonhangaba opened this issue Aug 20, 2021 · 1 comment
Labels
bug Something isn't working help wanted Extra attention is needed

Comments

@pindamonhangaba
Copy link

Describe the bug

When running on a react project, svg files with a path and constants with "authorize" (?) in the name are marked as "High"

Expected behavior

SVG's are not credentials

Screenshots
image

image

@pindamonhangaba pindamonhangaba added bug Something isn't working help wanted Extra attention is needed labels Aug 20, 2021
@juris
Copy link

juris commented Dec 2, 2021

Having about the same issue. Moreover, excluding svg files does not help.

Insider launch

docker run --rm -v $(pwd):/target-project insidersec/insider -v -tech javascript -target /target-project -exclude client/public/res/* -exclude test/*

Output

...
CVSS 7
Severity 
Class pencil.svg (0:0)
VulnerabilityID d3fcec32a5bdfc4891b31b00d27d9d0c
Description Credentials must not be stored in the code, an attacker could decompile the application and obtain the credential.
ClassMessage client/public/res/icons/streamline/pencil.svg (0:0)
Recomendation There are ‘Secrets Management’ solutions that can be used to store secrets.
...

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

No branches or pull requests

2 participants