C icon indicating copy to clipboard operation
C copied to clipboard

Add "Income Tax Form" to "Source Codes"

Open trevtemba opened this issue 4 years ago • 4 comments

Fixes #

Proposed Changes

trevtemba avatar Nov 25 '21 18:11 trevtemba

:warning: We detected 38 security issues in this pull request:

Insecure Use of Dangerous Function (37)
Docs Details
:bulb: Title: Potential OS command execution, Severity: High
https://github.com/aravindvnair99/C/blob/5c24cfeaa8e95948cc5df79ea4c4003f54a9c329/Source Codes/OS/execlp.c#L43
:bulb: Title: Buffer overflow, Severity: Critical
https://github.com/aravindvnair99/C/blob/5c24cfeaa8e95948cc5df79ea4c4003f54a9c329/Source Codes/pf and sf.c#L3
:bulb: Title: Buffer overflow, Severity: Critical
https://github.com/aravindvnair99/C/blob/5c24cfeaa8e95948cc5df79ea4c4003f54a9c329/Source Codes/Count of different characters in a String.c#L5
:bulb: Title: Buffer overflow, Severity: Critical
https://github.com/aravindvnair99/C/blob/5c24cfeaa8e95948cc5df79ea4c4003f54a9c329/Source Codes/Counting specific characters in a string.c#L7
:bulb: Title: Buffer overflow, Severity: Critical
https://github.com/aravindvnair99/C/blob/5c24cfeaa8e95948cc5df79ea4c4003f54a9c329/Source Codes/Employee salary (Structures).c#L16
:bulb: Title: Buffer overflow, Severity: Critical
https://github.com/aravindvnair99/C/blob/5c24cfeaa8e95948cc5df79ea4c4003f54a9c329/Source Codes/Palindrome without strrev.c#L6
:bulb: Title: Buffer overflow, Severity: Critical
https://github.com/aravindvnair99/C/blob/5c24cfeaa8e95948cc5df79ea4c4003f54a9c329/Source Codes/Palindrome without strrev.c#L10
:bulb: Title: Buffer overflow, Severity: Critical
https://github.com/aravindvnair99/C/blob/5c24cfeaa8e95948cc5df79ea4c4003f54a9c329/Source Codes/Pointer to a structure.c#L6
:bulb: Title: Buffer overflow, Severity: Critical
https://github.com/aravindvnair99/C/blob/5c24cfeaa8e95948cc5df79ea4c4003f54a9c329/Source Codes/Pointer to a structure.c#L7
:bulb: Title: Buffer overflow, Severity: Critical
https://github.com/aravindvnair99/C/blob/5c24cfeaa8e95948cc5df79ea4c4003f54a9c329/Source Codes/Search for char in string, find freq and pos.c#L5
:bulb: Title: Buffer overflow, Severity: Critical
https://github.com/aravindvnair99/C/blob/5c24cfeaa8e95948cc5df79ea4c4003f54a9c329/Source Codes/Shopping bill.c#L5
:bulb: Title: Buffer overflow, Severity: Critical
https://github.com/aravindvnair99/C/blob/5c24cfeaa8e95948cc5df79ea4c4003f54a9c329/Source Codes/String formatting.c#L7
:bulb: Title: Buffer overflow, Severity: Critical
https://github.com/aravindvnair99/C/blob/5c24cfeaa8e95948cc5df79ea4c4003f54a9c329/Source Codes/String to ASCII.c#L9
:bulb: Title: Buffer overflow, Severity: Critical
https://github.com/aravindvnair99/C/blob/5c24cfeaa8e95948cc5df79ea4c4003f54a9c329/Source Codes/Student structure.c#L12
:bulb: Title: Buffer overflow, Severity: Critical
https://github.com/aravindvnair99/C/blob/5c24cfeaa8e95948cc5df79ea4c4003f54a9c329/Source Codes/Count of different characters in a String.c#L8
:bulb: Title: Buffer overflow, Severity: Critical
https://github.com/aravindvnair99/C/blob/5c24cfeaa8e95948cc5df79ea4c4003f54a9c329/Source Codes/Counting specific characters in a string.c#L11
:bulb: Title: Buffer overflow, Severity: Critical
https://github.com/aravindvnair99/C/blob/5c24cfeaa8e95948cc5df79ea4c4003f54a9c329/Source Codes/Employee salary (Structures).c#L33
:bulb: Title: Buffer overflow, Severity: Critical
https://github.com/aravindvnair99/C/blob/5c24cfeaa8e95948cc5df79ea4c4003f54a9c329/Source Codes/Palindrome without strrev.c#L8
:bulb: Title: Buffer overflow, Severity: Critical
https://github.com/aravindvnair99/C/blob/5c24cfeaa8e95948cc5df79ea4c4003f54a9c329/Source Codes/Palindrome without strrev.c#L9
:bulb: Title: Buffer overflow, Severity: Critical
https://github.com/aravindvnair99/C/blob/5c24cfeaa8e95948cc5df79ea4c4003f54a9c329/Source Codes/Pointer to a structure.c#L16
:bulb: Title: Buffer overflow, Severity: Critical
https://github.com/aravindvnair99/C/blob/5c24cfeaa8e95948cc5df79ea4c4003f54a9c329/Source Codes/Pointer to a structure.c#L18
:bulb: Title: Buffer overflow, Severity: Critical
https://github.com/aravindvnair99/C/blob/5c24cfeaa8e95948cc5df79ea4c4003f54a9c329/Source Codes/Pointer to a structure.c#L20
:bulb: Title: Buffer overflow, Severity: Critical
https://github.com/aravindvnair99/C/blob/5c24cfeaa8e95948cc5df79ea4c4003f54a9c329/Source Codes/Search for char in string, find freq and pos.c#L8
:bulb: Title: Buffer overflow, Severity: Critical
https://github.com/aravindvnair99/C/blob/5c24cfeaa8e95948cc5df79ea4c4003f54a9c329/Source Codes/Shopping bill.c#L7
:bulb: Title: Buffer overflow, Severity: Critical
https://github.com/aravindvnair99/C/blob/5c24cfeaa8e95948cc5df79ea4c4003f54a9c329/Source Codes/Shopping bill.c#L9
:bulb: Title: Buffer overflow, Severity: Critical
https://github.com/aravindvnair99/C/blob/5c24cfeaa8e95948cc5df79ea4c4003f54a9c329/Source Codes/Shopping bill.c#L14
:bulb: Title: Buffer overflow, Severity: Critical
https://github.com/aravindvnair99/C/blob/5c24cfeaa8e95948cc5df79ea4c4003f54a9c329/Source Codes/String formatting.c#L10
:bulb: Title: Buffer overflow, Severity: Critical
https://github.com/aravindvnair99/C/blob/5c24cfeaa8e95948cc5df79ea4c4003f54a9c329/Source Codes/String to ASCII.c#L16
:bulb: Title: Buffer overflow, Severity: Critical
https://github.com/aravindvnair99/C/blob/5c24cfeaa8e95948cc5df79ea4c4003f54a9c329/Source Codes/Student structure.c#L27
:bulb: Title: Use of scanf, Severity: Critical
https://github.com/aravindvnair99/C/blob/5c24cfeaa8e95948cc5df79ea4c4003f54a9c329/Source Codes/palindrome_pyramid_pattern.c#L10
:bulb: Title: Use of scanf, Severity: Critical
https://github.com/aravindvnair99/C/blob/5c24cfeaa8e95948cc5df79ea4c4003f54a9c329/Source Codes/pascal triangle.c#L6
:bulb: Title: Use of scanf, Severity: Critical
https://github.com/aravindvnair99/C/blob/5c24cfeaa8e95948cc5df79ea4c4003f54a9c329/Source Codes/Income Tax Form.c#L32
:bulb: Title: Use of scanf, Severity: Critical
https://github.com/aravindvnair99/C/blob/5c24cfeaa8e95948cc5df79ea4c4003f54a9c329/Source Codes/Income Tax Form.c#L33
:bulb: Title: Use of scanf, Severity: Critical
https://github.com/aravindvnair99/C/blob/5c24cfeaa8e95948cc5df79ea4c4003f54a9c329/Source Codes/Income Tax Form.c#L34
:bulb: Title: Use of scanf, Severity: Critical
https://github.com/aravindvnair99/C/blob/5c24cfeaa8e95948cc5df79ea4c4003f54a9c329/Source Codes/Income Tax Form.c#L37
:bulb: Title: Use of scanf, Severity: Critical
https://github.com/aravindvnair99/C/blob/5c24cfeaa8e95948cc5df79ea4c4003f54a9c329/Source Codes/Income Tax Form.c#L47
:bulb: Title: Use of scanf, Severity: Critical
https://github.com/aravindvnair99/C/blob/5c24cfeaa8e95948cc5df79ea4c4003f54a9c329/Source Codes/Multiple_Files_Example/mainMFWC.c#L15

More info on how to fix Insecure Use of Dangerous Function in C/C++.


Insecure Processing of Data (1)
Docs Details
:bulb: Title: Insecure use of format strings, Severity: Critical
https://github.com/aravindvnair99/C/blob/5c24cfeaa8e95948cc5df79ea4c4003f54a9c329/Source Codes/pf and sf.c#L2

More info on how to fix Insecure Processing of Data in C/C++.


👉 Go to the dashboard for detailed results.

📥 Happy? Share your feedback with us.

guardrails[bot] avatar Nov 25 '21 18:11 guardrails[bot]

Updated, no warnings and I added a limit to the amount of characters read by "scanf" to reduce buffer overflow.

trevtemba avatar Nov 25 '21 22:11 trevtemba

I've reviewed this code and the error seems to be incorrect? As seen below, the variable has been initialized:

@tkatemb Declaration isn't the same as initialization.

Read more here: https://stackoverflow.com/questions/23345554/the-differences-between-initialize-define-declare-a-variable

aravindvnair99 avatar Nov 26 '21 16:11 aravindvnair99

Should be fixed!

trevtemba avatar Nov 26 '21 18:11 trevtemba