bitslip6/bitfire

View on GitHub

Showing 749 of 749 total issues

Call to undeclared function \get_user_meta()
Open

            $last_login = get_user_meta($user_id, "bitfire_last_login", true);
Severity: Critical
Found in wordpress-plugin/bitfire-admin.php by phan

Function render_mfa_page defined at /code/wordpress-plugin/bitfire-plugin.php:308 was previously defined at /code/custom-plugin/bitfire-plugin.php:273
Open

function render_mfa_page($msg = "Please enter the access code just sent to the address on record.") {
Severity: Minor
Found in wordpress-plugin/bitfire-plugin.php by phan

Doc-block of $args in check_user_cap is phpdoc param type array which is not a permitted replacement of the nullable param type ?array declared in the signature ('?T' should be documented as 'T|null' or '?T')
Open

 * @param array $args 0 - string requested cap, 1 - int user id, 2 - int object id
Severity: Minor
Found in wordpress-plugin/bitfire-plugin.php by phan

Call to undeclared function \add_action()
Open

\add_action("wp_loaded", "BitFirePlugin\bitfire_init");
Severity: Critical
Found in wordpress-plugin/bitfire-plugin.php by phan

Call to undeclared function \add_filter()
Open

    \add_filter("xmlrpc_enabled", function(){ return false; });
Severity: Critical
Found in wordpress-plugin/bitfire-plugin.php by phan

Function package_to_ver defined at /code/wordpress-plugin/includes.php:161 was previously defined at /code/custom-plugin/includes.php:123
Open

function package_to_ver(string $carry, string $line) : string {
Severity: Minor
Found in wordpress-plugin/includes.php by phan

Possible attempt to access missing magic method __invoke of '\ThreadFin\MaybeI'
Open

    $x = MaybeStr::of(fsockopen("whois.radb.net", 43, $no, $str, 1))
Severity: Info
Found in firewall/src/botfilter.php by phan

Doc-block of offsetGet has declared return type \BitFire\Malware which is not a permitted replacement of the nullable return type ?\BitFire\Malware declared in the signature ('?T' should be documented as 'T|null' or '?T')
Open

     * @return Malware 
Severity: Minor
Found in firewall/src/cms.php by phan

Suspicious array access to nullable ?array
Open

        if ($header['hash1'] !== $key_hashes[0] || $header['hash2'] !== $key_hashes[1]) {
Severity: Minor
Found in firewall/src/cuckoo.php by phan

Suspicious array access to nullable ?array
Open

    if ($header['expires'] > $ctx['now']) {
Severity: Minor
Found in firewall/src/cuckoo.php by phan

Returning type ?bool but cuckoo_find_header_for_read() is declared to return ?array
Open

        return debugN("cache entry expired [%s] %d/%d", $key, $header['expires'], $ctx['now']);
Severity: Minor
Found in firewall/src/cuckoo.php by phan

Saw an @param annotation for key, but it was not found in the param list of function cuckoo_connect(int $items = 4096, int $chunk_size = 2048, int $mem = 1114112, bool|false $force_init = null) : array;
Open

 * @param string $key = the shmem "key" = 'a'
Severity: Info
Found in firewall/src/cuckoo.php by phan

Reference to undeclared constant \MYSQLI_OPT_CONNECT_TIMEOUT
Open

        mysqli_options($db, MYSQLI_OPT_CONNECT_TIMEOUT, 3);
Severity: Minor
Found in firewall/src/db.php by phan

Returning type int but Closure(?array $data = null) : bool is declared to return bool
Open

            return $this->_qb($sql);
Severity: Minor
Found in firewall/src/db.php by phan

Possibly zero references to use statement for classlike/namespace Config (\BitFire\Config)
Open

use BitFire\Config;
Severity: Minor
Found in firewall/src/headers.php by phan

Argument 3 (data) is string but \ThreadFin\HTTP\http() takes array defined at /code/firewall/src/http.php:170
Open

        $c = http($method, $url, $data, $optional_headers);
Severity: Minor
Found in firewall/src/http.php by phan

Argument 3 (plugin_id) is 1|2 but \BitFireSvr\hash_file() takes string defined at /code/firewall/src/server.php:836
Open

                return hash_file($file, $dir, $type, $matches[2]);
Severity: Minor
Found in firewall/src/server.php by phan

Argument 2 (pieces) is ?array but \join() takes string[] when argument 1 is string
Open

                file_put_contents($f, join("\n", $log), $mode);
Severity: Minor
Found in firewall/src/util.php by phan

Argument 2 (value) is ?string but \BitFire\generic() takes string defined at /code/firewall/src/webfilter.php:403
Open

    return \BitFire\generic((string)$name, $value, $values, $keys);
Severity: Minor
Found in firewall/src/webfilter.php by phan

Variable $uuid is undeclared
Open

<p class="nor">If this is an error, please click the request review button below. Reference ID <i><?php echo $uuid; ?></i></p>
Severity: Minor
Found in firewall/views/block.php by phan
Severity
Category
Status
Source
Language