Build 6 success

gitbay-security on main · bde4d29680 · queued 2026-11-08 04:00 UTC · finished 2026-11-08 04:18 UTC · ran 1m26s

setup
$ git clone ssh://git@127.0.0.1/audit-labs/audit-labs.dev.git (bde4d29680)
step 1/2 mkdir -p "$GITBAY_RESULTS"

step 2/2 opengrep scan --quiet --disable-version-check --config /opt/opengrep-rules --sarif-output="$GITBAY_RESULTS/opengrep.sarif" .
                   
                   
┌─────────────────┐
│ 4 Code Findings │
└─────────────────┘
                       
    templates/base.html
    ❯❱ opt.opengrep-rules.generic.html-templates.security.var-in-href
          Detected a template variable used in an anchor tag with the 'href' attribute. This allows a       
          malicious actor to input the 'javascript:' URI and is subject to cross- site scripting (XSS)      
          attacks. If using Flask, use 'url_for()' to safely generate a URL. If using Django, use the 'url' 
          filter to safely generate a URL. If using Mustache, use a URL encoding library, or prepend a slash
          '/' to the variable for relative links (`href="/{{link}}"`). You may also consider setting the    
          Content Security Policy (CSP) header.                                                             
                                                                                                            
           34┆ <li><a href="{{ k.nav_url }}" class="btn-github">{{ k.nav_label }}</a></li>
   
    ❯❱ opt.opengrep-rules.python.flask.security.xss.audit.template-unescaped-with-safe
          Detected a segment of a Flask template where autoescaping is explicitly disabled with '| safe'  
          filter. This allows rendering of raw HTML in this segment. Ensure no user data is rendered here,
          otherwise this is a cross-site scripting (XSS) vulnerability.                                   
                                                                                                          
           38┆ {{ body | safe }}
            ⋮┆----------------------------------------
           46┆ <p class="footer-note">{{ k.footer_note | safe }}</p>
   
    ❯❱ opt.opengrep-rules.generic.html-templates.security.var-in-href
          Detected a template variable used in an anchor tag with the 'href' attribute. This allows a       
          malicious actor to input the 'javascript:' URI and is subject to cross- site scripting (XSS)      
          attacks. If using Flask, use 'url_for()' to safely generate a URL. If using Django, use the 'url' 
          filter to safely generate a URL. If using Mustache, use a URL encoding library, or prepend a slash
          '/' to the variable for relative links (`href="/{{link}}"`). You may also consider setting the    
          Content Security Policy (CSP) header.                                                             
                                                                                                            
           58┆ <a href="{{ parts[1] }}">{{ parts[0] }}</a>

results uploaded