Build 109 success

gitbay-security on main · d9228e572f · queued 2026-11-22 04:00 UTC · finished 2026-11-22 04:22 UTC · ran 1m31s

setup
$ git clone ssh://git@127.0.0.1/krz/orgo.git (d9228e572f)
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 │
└─────────────────┘
                            
    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