Skip to content

Add ShiftLeft build rules#15

Open
ongamse wants to merge 1 commit into
masterfrom
demo-branch-1732290909
Open

Add ShiftLeft build rules#15
ongamse wants to merge 1 commit into
masterfrom
demo-branch-1732290909

Conversation

@ongamse
Copy link
Copy Markdown
Owner

@ongamse ongamse commented Nov 22, 2024

Qwiet LogoQwiet Logo

This pull request enables build rules. You can read more about build rules here. The build rules are controlled by the shiftleft.yml file in the repository.

Visit app.shiftleft.io to see the security findings for this repository.

We've done a few things on your behalf

  • Forked this demo application
  • Generated a unique secret SHIFTLEFT_ACCESS_TOKEN to allow GitHub Actions in this repository to communicate with the Qwiet (Shiftleft) API
  • Committed a GitHub Action that will invoke Qwiet preZero's Static Application Security Testing (SAST) on all future pull requests on this repository
  • Created this pull request that demonstrates build rules. It also adds a status check that displays the result of the GitHub Action

Questions? Comments? Want to learn more? Get in touch with us or check out our documentation.

@github-actions
Copy link
Copy Markdown

Qwiet LogoQwiet Logo

Checking analysis of application Qwiet-python-GH against 3 build rules.

Using sl version 0.9.2874 (11b096e71ebf45537212bd68b49eab4f3fa88e44).

Checking findings on scan 2.

Results per rule:

  • Allow no critical findings: FAIL
    (3 matched vulnerabilities; configured threshold is 0).

    Findings:

      ID   CVSS    Rating    Title                                                                                     
     1    9.0   critical   Remote Code Execution: Command Injection Through Attacker-controlled Data in actions.py 
     5    9.0   critical   SQL Injection: Attacker-controlled Data Used in SQL Query in auth.py                    
     6    9.0   critical   SQL Injection: Attacker-controlled Data Used in SQL Query in users.py                   
     Severity rating   Count 
     Critical              3 
     High                  0 
     Medium                0 
     Low                   0 
     Category                Count 
     SQL Injection               2 
     Remote Code Execution       1 
  • Allow one OSS or container finding: FAIL
    (13 matched vulnerabilities; configured threshold is 1).

    First 5 findings:

       ID   CVSS   Rating   CVE                Title                                                                                                                                                      
     15    8.6    high    CVE-2016-10745     In Pallets Jinja before 2.8.1, str.format allows a sandbox escape.                                                                                         
     18    8.6    high    CVE-2019-10906     In Pallets Jinja before 2.10.1, str.format_map allows a sandbox escape.                                                                                  
     10    7.5    high    CVE-2019-1010083   The Pallets Project Flask before 1.0 is affected by unexpected memory usage. The impact is denial of service. The attack vector is crafted encoded JSON da…
     12    7.5    high    CVE-2023-30861     When all of the following conditions are met, a response containing data intended for one client may be cached and subsequently sent by a proxy to other c…
     27    7.5    high    CVE-2023-25577     Werkzeug's multipart form data parser will parse an unlimited number of parts, including file parts. Parts can be a small amount of bytes, but each requir…
     Severity rating   Count 
     Critical              0 
     High                  7 
     Medium                5 
     Low                   1 
  • Allow no reachable OSS vulnerability: pass
    (0 matched vulnerabilities; configured threshold is 0).

2 rules failed.

@github-actions
Copy link
Copy Markdown

Qwiet LogoQwiet Logo

Checking analysis of application shiftleft-python-demo against 3 build rules.

Using sl version 0.9.2874 (11b096e71ebf45537212bd68b49eab4f3fa88e44).

Checking findings on scan 1.

Results per rule:

  • Allow no critical findings: FAIL
    (10 matched vulnerabilities; configured threshold is 0).

    First 5 findings:

       ID   CVSS    Rating    CVE              Title                                                                                     
      1    9.0   critical                    Remote Code Execution: Command Injection Through Attacker-controlled Data in actions.py 
      5    9.0   critical                    SQL Injection: Attacker-controlled Data Used in SQL Query in auth.py                    
      6    9.0   critical                    SQL Injection: Attacker-controlled Data Used in SQL Query in users.py                   
     17    9.0   critical   CVE-2021-30139   pkg:pkg/alpine/apk-tools@2.12.3-r0                                                        
     21    9.0   critical   CVE-2021-36159   pkg:pkg/alpine/apk-tools@2.12.3-r0                                                        
     Severity rating   Count 
     Critical             10 
     High                  0 
     Medium                0 
     Low                   0 
     Finding Type   Count 
     Container          7 
     Vuln               3 
     Category                Count 
     SQL Injection               2 
     Remote Code Execution       1 
     CVE              Count 
     CVE-2022-28391       2 
     CVE-2021-3711        2 
     CVE-2022-37434       1 
     CVE-2021-36159       1 
     CVE-2021-30139       1 
  • Allow one OSS or container finding: FAIL
    (80 matched vulnerabilities; configured threshold is 1).

    First 5 findings:

        ID   CVSS    Rating    CVE              Title                                                                                                                                                     
      17    9.0   critical   CVE-2021-30139   pkg:pkg/alpine/apk-tools@2.12.3-r0                                                                                                                        
      21    9.0   critical   CVE-2021-36159   pkg:pkg/alpine/apk-tools@2.12.3-r0                                                                                                                        
      69    9.0   critical   CVE-2022-28391   CVE-2022-28391 affecting package busybox for versions less than 1.36.1-3. A patched version of the package is available.                                  
      90    9.0   critical   CVE-2021-3711    In order to decrypt SM2 encrypted data an application is expected to call the API function EVP_PKEY_decrypt(). Typically an application will call this fu…
     107    9.0   critical   CVE-2021-3711    In order to decrypt SM2 encrypted data an application is expected to call the API function EVP_PKEY_decrypt(). Typically an application will call this fu…
     Severity rating   Count 
     Critical              7 
     High                 53 
     Medium               17 
     Low                   3 
     Finding Type   Count 
     Container         67 
     Oss_vuln          13 
  • Allow no reachable OSS vulnerability: pass
    (0 matched vulnerabilities; configured threshold is 0).

2 rules failed.

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