Build 72 success

gitbay-security on main · 641324260b · queued 2026-11-01 04:00 UTC · finished 2026-11-01 04:24 UTC · ran 1m24s

setup
$ git clone ssh://git@127.0.0.1/krz/orgo.git (641324260b)
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" .
                   
                   
┌─────────────────┐
│ 6 Code Findings │
└─────────────────┘
                      
    .gitbay/release.sh
     ❱ opt.opengrep-rules.bash.lang.correctness.unquoted-variable-expansion-in-command
          Variable expansions must be double-quoted so as to prevent being split into multiple pieces        
          according to whitespace or whichever separator is specified by the IFS variable. If you really wish
          to split the variable's contents, you may use a variable that starts with an underscore e.g. $_X   
          instead of $X, and semgrep will ignore it. If what you need is an array, consider using a proper   
          bash array.                                                                                        
                                                                                                             
           53┆ $SSH "$GITBAY_SSH" release create "$repo" "$tag" --title "${tag#v}" --file -
            ⋮┆----------------------------------------
           56┆ $SSH "$GITBAY_SSH" release asset add "$repo" "$tag" "$(basename "$f")" <"$f"
                            
    docs/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.                                                             
                                                                                                            
           26┆ <a href="{{ item.url }}">{{ item.title }}</a>
   
    ❯❱ 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.                                   
                                                                                                          
           50┆ {% block content %}{{ body | safe }}{% endblock %}</main>
                            
    docs/templates/list.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.                                                             
                                                                                                            
            6┆ <a href="{{ root }}{{ entry.url }}">{{ entry.title }}</a>
                        
    examples/skeleton.rs
     ❱ opt.opengrep-rules.rust.lang.security.args
          args should not be used for security operations. From the docs: "The first element is traditionally
          the path of the executable, but it can be set to arbitrary text, and might not even exist. This    
          means this property should not be relied upon for security purposes."                              
                                                                                                             
           20┆ let mut args = std::env::args().skip(1);

results uploaded