Skip to content

[Precogs Alert] Uncontrolled Input Consumption detected (CWE-20, Risk: High)#6

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

[Precogs Alert] Uncontrolled Input Consumption detected (CWE-20, Risk: High)#6
rajnishprecogs wants to merge 1 commit intomainfrom
Precogs-fix-n2zg58mf

Conversation

@rajnishprecogs
Copy link
Owner

Vulnerability Details

  • File Path: src/state_example/mocks.cpp
  • Vulnerability Type: Uncontrolled Input Consumption
  • Risk Level: High

Explanation:
The function uses an external input source, GetFDP()->ConsumeIntegral(), to obtain an integer value without validating or constraining it. This can lead to unexpected behavior or vulnerabilities if the input is malicious or malformed.

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