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

Expected Issues Locations #448

Open
bperry-mf opened this issue Nov 1, 2023 · 2 comments
Open

Expected Issues Locations #448

bperry-mf opened this issue Nov 1, 2023 · 2 comments
Assignees
Labels
Analysis documentation Improvements or additions to documentation enhancement New feature or request good first issue Good for newcomers help wanted Extra attention is needed Need-To-Look Tech-Debt

Comments

@bperry-mf
Copy link

Describe the bug
I was wondering if the expected issues provided (scanner/sast/expectedIssues.csv) within the repo is current. If not, is there a separate repo or file that contain an updated version of the expected issues?

To Reproduce
The scanner/sast/expectedIssues.csv file defines the following entries as a vulnerability, but the line of code does not correspond to a vulnerability:

  • The line of code is the beginning of a try-catch block:
    • SQL Injection : src/main/java/org/sasanlabs/service/vulnerability/sqlInjection/ErrorBasedSQLInjectionVulnerability.java : 218
  • The file does not exist:
    • Reflected XXS : src/main/java/org/sasanlabs/service/vulnerability/xss/reflected/UrlParamBasedImgTagAttrInjection.java : 60
    • Reflected XXS : src/main/java/org/sasanlabs/service/vulnerability/xss/reflected/UrlParamBasedImgTagAttrInjection.java : 82
  • The line of code is the closing bracket of an if-statement '}':
    • Path Traversal : src/main/java/org/sasanlabs/service/vulnerability/pathTraversal/PathTraversalVulnerability.java : 65

Expected behavior
The expectedIssues.csv entries to reference a line of code that contains a function call, "return" statement, or a variable assignement when applicable.

@preetkaran20
Copy link
Member

preetkaran20 commented Nov 5, 2023

Hi @bperry-mf ,
Yes you are right. The expectedIssues.csv gets outdated with the code changes. Is it possible for you to fix it? We are struggling to maintain it as well and the thought is to generate it dynamically but seems complex.

Thanks,
Karan

@preetkaran20 preetkaran20 added documentation Improvements or additions to documentation enhancement New feature or request help wanted Extra attention is needed good first issue Good for newcomers Tech-Debt Analysis labels Dec 3, 2023
@asharan2buff
Copy link

Hi!!!
Can I take this up?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Analysis documentation Improvements or additions to documentation enhancement New feature or request good first issue Good for newcomers help wanted Extra attention is needed Need-To-Look Tech-Debt
Projects
None yet
Development

No branches or pull requests

3 participants