Skip to content

Add ShiftLeft build rules#7

Open
ongamse wants to merge 1 commit intomasterfrom
demo-branch-1684254624
Open

Add ShiftLeft build rules#7
ongamse wants to merge 1 commit intomasterfrom
demo-branch-1684254624

Conversation

@ongamse
Copy link
Copy Markdown
Owner

@ongamse ongamse commented May 16, 2023

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 shiftleft-python-demo against 3 build rules.

Using sl version 0.9.1871 (3175e548f6b2f2bcb92dcfe9f152394bf20ad8d4).

Checking findings on scan 1.

Results per rule:

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

    First 5 findings:

       ID   CVSS    Rating    CVE              Title                                                                                                                                                      
      9    9.0   critical   CVE-2021-30139   pkg:pkg/alpine/apk-tools@2.12.3-r0                                                                                                                         
     13    9.0   critical   CVE-2021-36159   pkg:pkg/alpine/apk-tools@2.12.3-r0                                                                                                                         
     39    9.0   critical   CVE-2022-28391   BusyBox through 1.35.0 allows remote attackers to execute arbitrary code if netstat is used to print a DNS PTR record's value to a VT compatible terminal.…
     70    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 fun…
     97    9.0   critical                    Directory Traversal: Attacker-controlled Data as File Path in log_entry                                                                                  
     Severity rating   Count 
     Critical             14 
     High                  0 
     Medium                0 
     Low                   0 
     Finding Type   Count 
     Vuln              10 
     Container          4 
     Category                Count 
     SQL Injection               6 
     Remote Code Execution       2 
     Directory Traversal         2 
     CVE              Count 
     CVE-2022-28391       1 
     CVE-2021-36159       1 
     CVE-2021-30139       1 
     CVE-2021-3711        1 
     OWASP 2021 Category         Count 
     A03-Injection                   8 
     A01-Broken-Access-Control       2 
  • Allow one OSS or container finding: FAIL
    (44 matched vulnerabilities; configured threshold is 1).

    First 5 findings:

       ID   CVSS    Rating    CVE              Title                                                                                                                                                      
      9    9.0   critical   CVE-2021-30139   pkg:pkg/alpine/apk-tools@2.12.3-r0                                                                                                                         
     13    9.0   critical   CVE-2021-36159   pkg:pkg/alpine/apk-tools@2.12.3-r0                                                                                                                         
     39    9.0   critical   CVE-2022-28391   BusyBox through 1.35.0 allows remote attackers to execute arbitrary code if netstat is used to print a DNS PTR record's value to a VT compatible terminal.…
     70    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 fun…
      8    8.6     high     CVE-2016-10745   In Pallets Jinja before 2.8.1, str.format allows a sandbox escape.                                                                                         
     Severity rating   Count 
     Critical              4 
     High                 26 
     Medium               12 
     Low                   2 
     Finding Type   Count 
     Container         37 
     Oss_vuln           7 
  • Allow no reachable OSS vulnerability: FAIL
    (2 matched vulnerabilities; configured threshold is 0).

    Findings:

      ID   CVSS   Rating   CVE                Title                                                                                                                                                       
     1    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 dat…
     4    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 cl…
     Severity rating   Count 
     Critical              0 
     High                  2 
     Medium                0 
     Low                   0 
     CVE                Count 
     CVE-2023-30861         1 
     CVE-2019-1010083       1 

3 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