Repository Analysis

chaitin/SafeLine

SafeLine is a self-hosted WAF(Web Application Firewall) / reverse proxy to protect your web apps from attacks and exploits.

2.4 Likely human-written View on GitHub
2.4
Adjusted Score
2.4
Raw Score
100%
Time Factor
2026-05-11
Last Push
21,425
Stars
Go
Language
12,817
Lines of Code
147
Files
36
Pattern Hits
2026-05-31
Scan Date

Score History

Severity Breakdown

CRITICAL 0HIGH 1MEDIUM 4LOW 31

Pattern Findings

36 matches across 6 categories. Click a row to expand file-level details.

Excessive Try-Catch Wrapping24 hits · 15 pts
SeverityFileLineSnippet
MEDIUMscripts/manage.py586def get_url(url):
MEDIUMscripts/manage.py675def exec_command(*args,shell=False):
MEDIUMscripts/manage.py683def exec_command_with_loading(*args, cwd=None, env=None):
LOWscripts/manage.py490 except Exception as e:
LOWscripts/manage.py703 except Exception as e:
LOWscripts/manage.py723 except Exception as e:
LOWscripts/manage.py883 except Exception as e:
LOWscripts/manage.py892 except Exception as e:
LOWscripts/manage.py901 except Exception as e:
LOWscripts/manage.py591 except Exception as e:
LOWscripts/manage.py647 except Exception as e:
LOWscripts/manage.py667 except Exception as e:
LOWscripts/manage.py680 except Exception as e:
LOWscripts/manage.py938 except Exception:
LOWscripts/manage.py949 except Exception as e:
LOWscripts/manage.py1153 except Exception as e:
LOWscripts/manage.py1160 except Exception as e:
LOWscripts/manage.py1235 except Exception as e:
LOWscripts/manage.py1281 except Exception as e:
LOWscripts/manage.py1291 except Exception as e:
LOWscripts/manage.py1389 except Exception as e:
LOWscripts/manage.py1429 except Exception as e:
LOWscripts/manage.py1496 except Exception as e:
LOWscripts/manage.py1563 except Exception as e:
Deep Nesting8 hits · 8 pts
SeverityFileLineSnippet
LOWscripts/manage.py621
LOWscripts/manage.py633
LOWscripts/manage.py683
LOWscripts/manage.py757
LOWscripts/manage.py836
LOWscripts/manage.py911
LOWscripts/manage.py1002
LOWscripts/manage.py1501
Cross-Language Confusion1 hit · 4 pts
SeverityFileLineSnippet
HIGHscripts/manage.py713 return exec_command('systemctl enable docker && systemctl daemon-reload && systemctl restart docker',shell=True)
Self-Referential Comments1 hit · 3 pts
SeverityFileLineSnippet
MEDIUM.github/ISSUE_TEMPLATE/bug-report.yaml3# Create a report to help us improve
Over-Commented Block1 hit · 1 pts
SeverityFileLineSnippet
LOWmcp_server/README.md61# 2. Edit docker-compose.yml to configure environment variables
Hyper-Verbose Identifiers1 hit · 0 pts
SeverityFileLineSnippet
LOWscripts/manage.py683def exec_command_with_loading(*args, cwd=None, env=None):