yinghuocho/firefly-proxy
A proxy software to help circumventing the Great Firewall.
- Repository: https://github.com/yinghuocho/firefly-proxy
- Commit:
69c2bd0414cf1a17fc55d01836cbc021fe291f14 - Generated: 2026-11-13T23:22:02+00:00
- Scorer 0.1.0, scoring prov-4+qual-2+sec-2, report schema v2
Scores
| Pillar | Score | Signal | Confidence | Coverage |
|---|---|---|---|---|
| AI provenance (estimated AI-generated share) | 0 | none-detected | 49% | 100% |
| Code quality | 42 | poor | 90% | 100% |
| Security | 61 | weak | 85% | 100% |
AI provenance
No AI attribution or AI-consistent velocity signals detected.
- Explicitly attributed share (lower bound): 0.0%
- Unattributed share in AI-consistent velocity bursts: 0.0%
- Estimated AI-generated share: 0.0%
| Month | Lines added | Attributed to AI |
|---|---|---|
| 2016-04 | 7,565 | 0% |
| 2016-05 | 5 | 0% |
| 2016-06 | 80 | 0% |
| 2016-09 | 3 | 0% |
| 2016-11 | 101 | 0% |
| 2016-12 | 17 | 0% |
| 2017-05 | 1 | 0% |
| 2017-07 | 1 | 0% |
| 2017-10 | 1 | 0% |
AI provenance describes how code was produced; it is not a quality judgment. Unless attribution is explicit, these are signals consistent with AI generation, not proof. Squash/rebase workflows, imported code, and rewritten history reduce accuracy.
Code quality
Code quality is poor: test-to-source ratio 0.00, no CI test run detected; 5% of function code in complex or long functions; 10% duplicated lines. Weakest area: testing.
| Area | Score |
|---|---|
| Complexity (lizard) | 86 |
| Duplication | 54 |
| Code smells (Opengrep) | 25 |
| Tests and CI | 0 |
| Documentation | 65 |
| Type safety | 40 |
| Process (Scorecard review/maintenance) | n/a |
- Functions: 563; mean complexity 2.5, 90th percentile 5; 3 complex and 1 long functions
- Duplicated lines: 10.3% of 5,676 compared
- Tests: 0 test lines for 7,438 source lines (ratio 0.00); CI test commands: none detected; 0% of recent source commits also change tests
- Docs missing or thin: contributing, changelog
Most complex functions:
- uiCommandProc in client/ui.go: complexity 25, 58 lines
- _main in client/main.go: complexity 21, 138 lines
- settingsPOST in client/ui.go: complexity 18, 61 lines
Security
Security posture is weak: 9 high-severity SAST findings. Weakest area: posture.
| Area | Score |
|---|---|
| Secrets (gitleaks, tree + history) | 100 |
| Static analysis (Opengrep) | 42 |
| Vulnerable dependencies (OSV) | n/a |
| CI workflows (zizmor) | n/a |
| Posture (policy, updates, signing, lockfiles) | 0 |
| OpenSSF Scorecard | n/a |
- Posture checks passed: lockfiles; missing: security policy, dependency updates, signed commits
Top findings
| Severity | Finding | Location |
|---|---|---|
| high | opengrep/python.lang.security.audit.dangerous-subprocess-use-audit: Detected subprocess function 'Popen' without a static string. If this data can be controlled by a malicious actor, it may be an instance of command injection. Audit the use of this call to ensure it is not controllable by an external resource. You may consider using 'shlex.escape()'. [confidence low] |
DEPRECATED_PYTHON_SRC/component/_brz_win.py:142 |
| high | opengrep/python.lang.security.audit.dangerous-subprocess-use-audit: Detected subprocess function 'Popen' without a static string. If this data can be controlled by a malicious actor, it may be an instance of command injection. Audit the use of this call to ensure it is not controllable by an external resource. You may consider using 'shlex.escape()'. [confidence low] |
DEPRECATED_PYTHON_SRC/component/_brz_win.py:150 |
| high | opengrep/python.lang.security.audit.dangerous-subprocess-use-audit: Detected subprocess function 'Popen' without a static string. If this data can be controlled by a malicious actor, it may be an instance of command injection. Audit the use of this call to ensure it is not controllable by an external resource. You may consider using 'shlex.escape()'. [confidence low] |
DEPRECATED_PYTHON_SRC/component/brz.py:32 |
| high | opengrep/python.lang.security.audit.dangerous-subprocess-use-audit: Detected subprocess function 'Popen' without a static string. If this data can be controlled by a malicious actor, it may be an instance of command injection. Audit the use of this call to ensure it is not controllable by an external resource. You may consider using 'shlex.escape()'. [confidence low] |
DEPRECATED_PYTHON_SRC/component/brz.py:42 |
| high | opengrep/python.lang.security.audit.dangerous-subprocess-use-audit: Detected subprocess function 'Popen' without a static string. If this data can be controlled by a malicious actor, it may be an instance of command injection. Audit the use of this call to ensure it is not controllable by an external resource. You may consider using 'shlex.escape()'. [confidence low] |
DEPRECATED_PYTHON_SRC/component/brz.py:88 |
| high | opengrep/python.lang.security.audit.dangerous-subprocess-use-audit: Detected subprocess function 'Popen' without a static string. If this data can be controlled by a malicious actor, it may be an instance of command injection. Audit the use of this call to ensure it is not controllable by an external resource. You may consider using 'shlex.escape()'. [confidence low] |
DEPRECATED_PYTHON_SRC/component/brz.py:101 |
| high | opengrep/python.lang.security.audit.dangerous-subprocess-use-audit: Detected subprocess function 'Popen' without a static string. If this data can be controlled by a malicious actor, it may be an instance of command injection. Audit the use of this call to ensure it is not controllable by an external resource. You may consider using 'shlex.escape()'. [confidence low] |
DEPRECATED_PYTHON_SRC/component/circumvention.py:190 |
| high | opengrep/python.lang.security.audit.dangerous-subprocess-use-audit: Detected subprocess function 'STARTUPINFO' without a static string. If this data can be controlled by a malicious actor, it may be an instance of command injection. Audit the use of this call to ensure it is not controllable by an external resource. You may consider using 'shlex.escape()'. [confidence low] |
DEPRECATED_PYTHON_SRC/component/circumvention.py:210 |
| high | opengrep/python.lang.security.audit.dangerous-subprocess-use-audit: Detected subprocess function 'Popen' without a static string. If this data can be controlled by a malicious actor, it may be an instance of command injection. Audit the use of this call to ensure it is not controllable by an external resource. You may consider using 'shlex.escape()'. [confidence low] |
DEPRECATED_PYTHON_SRC/component/circumvention.py:214 |
| medium | opengrep/python.lang.security.audit.weak-ssl-version: An insecure SSL version was detected. TLS versions 1.0, 1.1, and all SSL versions are considered weak encryption and are deprecated. Use 'ssl.PROTOCOL_TLSv1_2' or higher. [confidence medium] |
DEPRECATED_PYTHON_SRC/component/circumvention.py:97 |
| medium | opengrep/python.django.security.injection.tainted-url-host: User data flows into the host portion of this manually-constructed URL. This could allow an attacker to send data to their own server, potentially exposing sensitive data such as cookies or authorization information sent with this request. They could also probe internal servers or other resources th [confidence low] |
DEPRECATED_PYTHON_SRC/component/local.py:135 |
| medium | opengrep/python.lang.security.insecure-hash-algorithm-sha1: Detected SHA1 hash algorithm which is considered insecure. SHA1 is not collision resistant and is therefore not suitable as a cryptographic signature. Use SHA256 or SHA3 instead. [confidence medium] |
DEPRECATED_PYTHON_SRC/lib/utils.py:117 |
| medium | opengrep/python.lang.security.audit.weak-ssl-version: An insecure SSL version was detected. TLS versions 1.0, 1.1, and all SSL versions are considered weak encryption and are deprecated. Use 'ssl.PROTOCOL_TLSv1_2' or higher. [confidence medium] |
DEPRECATED_PYTHON_SRC/meeksocks/relay.py:52 |
| medium | opengrep/python.lang.security.audit.weak-ssl-version: An insecure SSL version was detected. TLS versions 1.0, 1.1, and all SSL versions are considered weak encryption and are deprecated. Use 'ssl.PROTOCOL_TLSv1_2' or higher. [confidence medium] |
DEPRECATED_PYTHON_SRC/meeksocks/relay.py:54 |
| medium | opengrep/javascript.jquery.security.audit.prohibit-jquery-html: JQuery's html function is susceptible to Cross Site Scripting (XSS) attacks. If you're just passing text, consider text instead. Otherwise, use a function that escapes HTML such as edX's HtmlUtils.setHtml(). [confidence low] |
DEPRECATED_PYTHON_SRC/webpanel/static/js/fl.js:20 |
| medium | opengrep/javascript.jquery.security.audit.prohibit-jquery-html: JQuery's html function is susceptible to Cross Site Scripting (XSS) attacks. If you're just passing text, consider text instead. Otherwise, use a function that escapes HTML such as edX's HtmlUtils.setHtml(). [confidence low] |
DEPRECATED_PYTHON_SRC/webpanel/static/js/fl.js:33 |
| medium | opengrep/python.django.security.django-no-csrf-token: Manually-created forms in django templates should specify a csrf_token to prevent CSRF attacks. [confidence medium] |
DEPRECATED_PYTHON_SRC/webpanel/templates/blacklist.html:18 |
| medium | opengrep/python.django.security.django-no-csrf-token: Manually-created forms in django templates should specify a csrf_token to prevent CSRF attacks. [confidence medium] |
DEPRECATED_PYTHON_SRC/webpanel/templates/blacklist.html:32 |
| medium | opengrep/python.django.security.django-no-csrf-token: Manually-created forms in django templates should specify a csrf_token to prevent CSRF attacks. [confidence medium] |
DEPRECATED_PYTHON_SRC/webpanel/templates/blacklist.html:51 |
| medium | opengrep/python.django.security.django-no-csrf-token: Manually-created forms in django templates should specify a csrf_token to prevent CSRF attacks. [confidence medium] |
DEPRECATED_PYTHON_SRC/webpanel/templates/hosts.html:18 |
| medium | opengrep/python.django.security.django-no-csrf-token: Manually-created forms in django templates should specify a csrf_token to prevent CSRF attacks. [confidence medium] |
DEPRECATED_PYTHON_SRC/webpanel/templates/hosts.html:27 |
| medium | opengrep/python.django.security.django-no-csrf-token: Manually-created forms in django templates should specify a csrf_token to prevent CSRF attacks. [confidence medium] |
DEPRECATED_PYTHON_SRC/webpanel/templates/hosts.html:47 |
| medium | opengrep/python.django.security.django-no-csrf-token: Manually-created forms in django templates should specify a csrf_token to prevent CSRF attacks. [confidence medium] |
DEPRECATED_PYTHON_SRC/webpanel/templates/proxy.html:14 |
| medium | opengrep/go.lang.security.audit.xss.no-direct-write-to-responsewriter: Detected directly writing or similar in 'http.ResponseWriter.write()'. This bypasses HTML escaping that prevents cross-site scripting vulnerabilities. Instead, use the 'html/template' package and render data using 'template.Execute()'. [confidence low] |
client/pac.go:74 |
| medium | opengrep/go.lang.security.audit.crypto.math-random-used: Do not use math/rand. Use crypto/rand instead. [confidence medium] |
client/tunnel.go:7 |
Static signals only: the scorer never runs the project's code. Secret findings are pattern matches that were not verified, and secret values are never stored.
Repository profile
- Source lines: 7,438; test lines: 0
| Language | Lines |
|---|---|
| Python | 5,308 |
| Go | 2,040 |
| JavaScript | 66 |
| Shell | 24 |