RepoTrust

lincanbin/Carbon-Forum

A high performance open-source forum software written in PHP. Discussions Tags based with Quora/StackOverflow style.

https://github.com/lincanbin/Carbon-Forum · commit 55d98f4e4a8c · scored 2026-11-13 · scoring prov-4+qual-2+sec-2

RepoTrust ai badge RepoTrust quality badge RepoTrust security badge

Dispute this score or request a re-score Full report JSON

Scores

Pillar Score Signal Confidence Coverage
AI provenance (estimated AI-generated share) 0 none-detected 65% 100%
Code quality 44 poor 90% 100%
Security 48 poor 85% 100%

AI provenance

No AI attribution or AI-consistent velocity signals detected.

Month Lines added Attributed to AI
2016-10 19 0%
2016-11 53 0%
2016-12 1,241 0%
2017-02 17 0%
2017-03 702 0%
2017-04 903 0%
2017-05 9,265 0%
2017-06 807 0%
2017-07 752 0%
2017-08 3 0%
2017-12 1 0%
2018-07 1 0%

Evidence

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; 9% of function code in complex or long functions; 22% duplicated lines. Weakest area: process.

Area Score
Complexity (lizard) 77
Duplication 26
Code smells (Opengrep) 79
Tests and CI 15
Documentation 65
Type safety n/a
Process (Scorecard review/maintenance) 0

Most complex functions:

Security

Security posture is poor: 109 high-severity SAST findings. Weakest area: posture.

Area Score
Secrets (gitleaks, tree + history) 100
Static analysis (Opengrep) 22
Vulnerable dependencies (OSV) n/a
CI workflows (zizmor) n/a
Posture (policy, updates, signing, lockfiles) 0
OpenSSF Scorecard 16

Top findings

Severity Finding Location
high opengrep/dockerfile.security.missing-user-entrypoint: By not specifying a USER, a program in the container may run as 'root'. This is a security hazard. If an attacker can control a process running as root, they may have control over the container. Ensure that the last USER in a Dockerfile is a USER other than 'root'. [confidence medium] Dockerfile:40
high opengrep/php.lang.security.weak-crypto: Detected usage of weak crypto function. Consider using stronger alternatives. [confidence low] common.php:380
high opengrep/php.lang.security.weak-crypto: Detected usage of weak crypto function. Consider using stronger alternatives. [confidence low] common.php:382
high opengrep/php.lang.security.weak-crypto: Detected usage of weak crypto function. Consider using stronger alternatives. [confidence low] controller/forgot.php:27
high opengrep/php.lang.security.weak-crypto: Detected usage of weak crypto function. Consider using stronger alternatives. [confidence low] controller/login.php:75
high opengrep/php.lang.security.weak-crypto: Detected usage of weak crypto function. Consider using stronger alternatives. [confidence low] controller/oauth.php:18
high opengrep/php.lang.security.weak-crypto: Detected usage of weak crypto function. Consider using stronger alternatives. [confidence low] controller/oauth.php:61
high opengrep/php.lang.security.weak-crypto: Detected usage of weak crypto function. Consider using stronger alternatives. [confidence low] controller/oauth.php:114
high opengrep/php.lang.security.weak-crypto: Detected usage of weak crypto function. Consider using stronger alternatives. [confidence low] controller/oauth.php:194
high opengrep/php.lang.security.weak-crypto: Detected usage of weak crypto function. Consider using stronger alternatives. [confidence low] controller/register.php:76
high opengrep/php.lang.security.weak-crypto: Detected usage of weak crypto function. Consider using stronger alternatives. [confidence low] controller/register.php:158
high opengrep/php.lang.security.weak-crypto: Detected usage of weak crypto function. Consider using stronger alternatives. [confidence low] controller/reset_password.php:39
high opengrep/php.lang.security.weak-crypto: Detected usage of weak crypto function. Consider using stronger alternatives. [confidence low] controller/reset_password.php:45
high opengrep/php.lang.security.weak-crypto: Detected usage of weak crypto function. Consider using stronger alternatives. [confidence low] controller/search.php:55
high opengrep/php.lang.security.weak-crypto: Detected usage of weak crypto function. Consider using stronger alternatives. [confidence low] controller/settings.php:72
high opengrep/php.lang.security.weak-crypto: Detected usage of weak crypto function. Consider using stronger alternatives. [confidence low] controller/settings.php:78
high opengrep/php.lang.security.injection.tainted-sql-string: User data flows into this manually-constructed SQL string. User data can be safely inserted into SQL strings using prepared statements or an object-relational mapper (ORM). Manually-constructed SQL strings is a possible indicator of SQL injection, which could let an attacker steal or manipulate data [confidence medium] controller/upload_list.php:15
high opengrep/php.lang.security.injection.tainted-sql-string: User data flows into this manually-constructed SQL string. User data can be safely inserted into SQL strings using prepared statements or an object-relational mapper (ORM). Manually-constructed SQL strings is a possible indicator of SQL injection, which could let an attacker steal or manipulate data [confidence medium] controller/upload_list.php:19
high opengrep/php.lang.security.file-inclusion: Detected non-constant file inclusion. This can lead to local file inclusion (LFI) or remote file inclusion (RFI) if user input reaches this statement. LFI and RFI could lead to sensitive files being obtained by attackers. Instead, explicitly specify what to include. If that is not a viable solution, [confidence low] index.php:118
high opengrep/php.lang.security.injection.tainted-sql-string: User data flows into this manually-constructed SQL string. User data can be safely inserted into SQL strings using prepared statements or an object-relational mapper (ORM). Manually-constructed SQL strings is a possible indicator of SQL injection, which could let an attacker steal or manipulate data [confidence medium] install/index.php:53
high opengrep/php.lang.security.weak-crypto: Detected usage of weak crypto function. Consider using stronger alternatives. [confidence low] library/PDO.Log.class.php:13
high opengrep/php.lang.security.weak-crypto: Detected usage of weak crypto function. Consider using stronger alternatives. [confidence low] library/PDO.class.php:214
high opengrep/php.lang.security.weak-crypto: Detected usage of weak crypto function. Consider using stronger alternatives. [confidence low] library/PDO.class.php:224
high opengrep/php.lang.security.injection.echoed-request: Echoing user input risks cross-site scripting vulnerability. You should use htmlentities() when showing data to users. [confidence medium] library/PHPAnalysis.demo.php:105
high opengrep/php.lang.security.injection.echoed-request: Echoing user input risks cross-site scripting vulnerability. You should use htmlentities() when showing data to users. [confidence medium] library/PHPAnalysis.demo.php:122

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

Language Lines
PHP 22,738
JavaScript 19,772
SQL 495
Shell 9

Embed a badge

Maintainers can show these in a README. Badges update when the repository is re-scored.

[![RepoTrust ai](https://repotrust.synapticcyber.com/badge/github.com/lincanbin/Carbon-Forum/ai.svg)](https://repotrust.synapticcyber.com/r/github.com/lincanbin/Carbon-Forum/)
[![RepoTrust quality](https://repotrust.synapticcyber.com/badge/github.com/lincanbin/Carbon-Forum/quality.svg)](https://repotrust.synapticcyber.com/r/github.com/lincanbin/Carbon-Forum/)
[![RepoTrust security](https://repotrust.synapticcyber.com/badge/github.com/lincanbin/Carbon-Forum/security.svg)](https://repotrust.synapticcyber.com/r/github.com/lincanbin/Carbon-Forum/)