Skip to content

[Precogs Alert] Global Variable Assignment detected (CWE-562, Risk: Medium)#2

Open
rajnishprecogs wants to merge 1 commit intomainfrom
Precogs-fix-qdahpozy
Open

[Precogs Alert] Global Variable Assignment detected (CWE-562, Risk: Medium)#2
rajnishprecogs wants to merge 1 commit intomainfrom
Precogs-fix-qdahpozy

Conversation

@rajnishprecogs
Copy link
Owner

Vulnerability Details

  • File Path: src/state_example/mocks.cpp
  • Vulnerability Type: Global Variable Assignment
  • Risk Level: Medium

Explanation:
The function assigns the input parameter to a global variable without validation or sanitization. This could lead to unintended side effects or vulnerabilities if the global variable is used in a security-sensitive context.

Please review and address the issue accordingly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant