Issues (80)

Security Analysis    not enabled

This project does not seem to handle request data directly as such no vulnerable execution paths were found.

  File Inclusion
File Inclusion enables an attacker to inject custom files into PHP's file loading mechanism, either explicitly passed to include, or for example via PHP's auto-loading mechanism.
  Regex Injection
Regex Injection enables an attacker to execute arbitrary code in your PHP process.
  SQL Injection
SQL Injection enables an attacker to execute arbitrary SQL code on your database server gaining access to user data, or manipulating user data.
  Response Splitting
Response Splitting can be used to send arbitrary responses.
  File Manipulation
File Manipulation enables an attacker to write custom data to files. This potentially leads to injection of arbitrary code on the server.
  Object Injection
Object Injection enables an attacker to inject an object into PHP code, and can lead to arbitrary code execution, file exposure, or file manipulation attacks.
  File Exposure
File Exposure allows an attacker to gain access to local files that he should not be able to access. These files can for example include database credentials, or other configuration files.
  XML Injection
XML Injection enables an attacker to read files on your local filesystem including configuration files, or can be abused to freeze your web-server process.
  Code Injection
Code Injection enables an attacker to execute arbitrary code on the server.
  Variable Injection
Variable Injection enables an attacker to overwrite program variables with custom data, and can lead to further vulnerabilities.
  XPath Injection
XPath Injection enables an attacker to modify the parts of XML document that are read. If that XML document is for example used for authentication, this can lead to further vulnerabilities similar to SQL Injection.
  Other Vulnerability
This category comprises other attack vectors such as manipulating the PHP runtime, loading custom extensions, freezing the runtime, or similar.
  Command Injection
Command Injection enables an attacker to inject a shell command that is execute with the privileges of the web-server. This can be used to expose sensitive data, or gain access of your server.
  LDAP Injection
LDAP Injection enables an attacker to inject LDAP statements potentially granting permission to run unauthorized queries, or modify content inside the LDAP tree.
  Cross-Site Scripting
Cross-Site Scripting enables an attacker to inject code into the response of a web-request that is viewed by other users. It can for example be used to bypass access controls, or even to take over other users' accounts.
  Header Injection
Unfortunately, the security analysis is currently not available for your project. If you are a non-commercial open-source project, please contact support to gain access.

class/Plugins/Wflinks.php (1 issue)

1
<?php
2
3
declare(strict_types=1);
4
5
namespace XoopsModules\Rssfit\Plugins;
6
7
/*
8
 * You may not change or alter any portion of this comment or credits
9
 * of supporting developers from this source code or any supporting source code
10
 * which is considered copyrighted (c) material of the original comment or credit authors.
11
 *
12
 * This program is distributed in the hope that it will be useful,
13
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
15
 */
16
17
/**
18
 * @copyright    XOOPS Project (https://xoops.org)
19
 * @license      GNU GPL 2 or later (https://www.gnu.org/licenses/gpl-2.0.html)
20
 * @package      RSSFit - Extendable XML news feed generator
21
 * @author       NS Tai (aka tuff) <http://www.brandycoke.com>
22
 * @author       XOOPS Development Team
23
 */
24
25
/*
26
* About this RSSFit plug-in
27
*
28
* Author :
29
*   DuGris - http://www.dugris.info
30
*
31
* Requirements:
32
*   Module : RSSFit  - http://www.brandycoke.com
33
*   verision : 1.20
34
*
35
*   Module : wflinks - http://www.wf-projects.com
36
*   Version : 1.03
37
*/
38
39
use XoopsModules\Rssfit\{
40
    AbstractPlugin
41
};
42
use XoopsModules\Wflinks\Helper as PluginHelper;
43
44
if (!\defined('RSSFIT_ROOT_PATH')) {
45
    exit();
46
}
47
48
/**
49
 * Class Wflinks
50
 */
51
final class Wflinks extends AbstractPlugin
52
{
53
    public function __construct() {
54
        if (\class_exists(PluginHelper::class)) {
55
            $this->helper = PluginHelper::getInstance();
56
            $this->dirname = $this->helper->dirname();
57
        }
58
    }
59
60
    public function grabEntries(\XoopsMySQLDatabase $xoopsDB): ?array
61
    {
62
        global $xoopsUser;
63
64
        $groups = \is_object($xoopsUser) ? $xoopsUser->getGroups() : XOOPS_GROUP_ANONYMOUS;
65
        /** @var \XoopsGroupPermHandler $grouppermHandler */
66
        $grouppermHandler = \xoops_getHandler('groupperm');
67
68
        $ret    = null;
69
        $i      = 0;
70
        $sql    = 'SELECT lid, cid, title, date, description FROM ' . $xoopsDB->prefix('wflinks_links') . ' WHERE status>0 ORDER BY date DESC';
71
        $result = $xoopsDB->query($sql, $this->grab, 0);
72
        if ($result instanceof \mysqli_result) {
73
            $ret = [];
74
            while (false !== ($row = $xoopsDB->fetchArray($result))) {
75
                if ($grouppermHandler->checkRight('WFLinkCatPerm', $row['cid'], $groups, $this->mid)) {
0 ignored issues
show
Bug Best Practice introduced by
The property mid does not exist on XoopsModules\Rssfit\Plugins\Wflinks. Did you maybe forget to declare it?
Loading history...
76
                    //  required
77
                    $ret[$i]['title']       = $row['title'];
78
                    $ret[$i]['link']        = $ret[$i]['guid'] = XOOPS_URL . '/modules/' . $this->dirname . '/singlelink.php?cid=' . $row['cid'] . '&lid=' . $row['lid'];
79
                    $ret[$i]['timestamp']   = $row['date'];
80
                    $ret[$i]['description'] = $row['description'];
81
                    //  optional
82
                    $ret[$i]['category'] = $this->modname;
83
                    $ret[$i]['domain']   = XOOPS_URL . '/modules/' . $this->dirname . '/';
84
                    $i++;
85
                }
86
            }
87
        }
88
89
        return $ret;
90
    }
91
}
92