Issues (38)

Security Analysis    no request data  

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

  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.
  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.
  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.
  Code Injection
Code Injection enables an attacker to execute arbitrary code on the server.
  Response Splitting
Response Splitting can be used to send arbitrary responses.
  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.
  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.
  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.
  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.
  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.
  Header Injection
  Other Vulnerability
This category comprises other attack vectors such as manipulating the PHP runtime, loading custom extensions, freezing the runtime, or similar.
  Regex Injection
Regex Injection enables an attacker to execute arbitrary code in your PHP process.
  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.
  Variable Injection
Variable Injection enables an attacker to overwrite program variables with custom data, and can lead to further vulnerabilities.
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.

src/config/phpsms.php (1 issue)

Upgrade to new PHP Analysis Engine

These results are based on our legacy PHP analysis, consider migrating to our new PHP analysis engine instead. Learn more

1
<?php
2
3
return [
4
    /*
0 ignored issues
show
Unused Code Comprehensibility introduced by
39% of this comment could be valid code. Did you maybe forget this after debugging?

Sometimes obsolete code just ends up commented out instead of removed. In this case it is better to remove the code once you have checked you do not need it.

The code might also have been commented out for debugging purposes. In this case it is vital that someone uncomments it again or your project may behave in very unexpected ways in production.

This check looks for comments that seem to be mostly valid code and reports them.

Loading history...
5
     * The scheme information
6
     * -------------------------------------------------------------------
7
     *
8
     * The key-value paris: {name} => {value}
9
     *
10
     * Examples:
11
     * 'Log' => '10 backup'
12
     * 'SmsBao' => '100'
13
     * 'CustomAgent' => [
14
     *     '5 backup',
15
     *     'agentClass' => '/Namespace/ClassName'
16
     * ]
17
     *
18
     * Supported agents:
19
     * 'Log', 'YunPian', 'YunTongXun', 'SubMail', 'Luosimao',
20
     * 'Ucpaas', 'JuHe', 'Alidayu', 'SendCloud', 'SmsBao',
21
     * 'Qcloud', 'Aliyun'
22
     *
23
     */
24
    'scheme' => [
25
        'Log',
26
    ],
27
28
    /*
29
     * The configuration
30
     * -------------------------------------------------------------------
31
     *
32
     * Expected the name of agent to be a string.
33
     *
34
     */
35
    'agents' => [
36
        /*
37
         * -----------------------------------
38
         * YunPian
39
         * 云片代理器
40
         * -----------------------------------
41
         * website:http://www.yunpian.com
42
         * support content sms.
43
         */
44
        'YunPian' => [
45
            //用户唯一标识,必须
46
            'apikey' => 'your_api_key',
47
        ],
48
49
        /*
50
         * -----------------------------------
51
         * YunTongXun
52
         * 云通讯代理器
53
         * -----------------------------------
54
         * website:http://www.yuntongxun.com/
55
         * support template sms.
56
         */
57
        'YunTongXun' => [
58
            //主帐号
59
            'accountSid'    => 'your_account_sid',
60
            //主帐号令牌
61
            'accountToken'  => 'your_account_token',
62
            //应用Id
63
            'appId'         => 'your_app_id',
64
            //请求地址(不加协议前缀)
65
            'serverIP'      => 'app.cloopen.com',
66
            //请求端口
67
            'serverPort'    => '8883',
68
            //被叫号显
69
            'displayNum'    => null,
70
            //语音验证码播放次数
71
            'playTimes'     => 3,
72
        ],
73
74
        /*
75
         * -----------------------------------
76
         * SubMail
77
         * -----------------------------------
78
         * website:http://submail.cn/
79
         * support template sms.
80
         */
81
        'SubMail' => [
82
            'appid'     => 'your_app_id',
83
            'signature' => 'your app key',
84
        ],
85
86
        /*
87
         * -----------------------------------
88
         * luosimao
89
         * -----------------------------------
90
         * website:http://luosimao.com
91
         * support content sms.
92
         */
93
        'Luosimao' => [
94
            'apikey'        => 'your_api_key',
95
            'voiceApikey'   => 'your_voice_api_key',
96
        ],
97
98
        /*
99
         * -----------------------------------
100
         * ucpaas
101
         * -----------------------------------
102
         * website:http://ucpaas.com
103
         * support template sms.
104
         */
105
        'Ucpaas' => [
106
            //主帐号,对应开官网发者主账号下的 ACCOUNT SID
107
            'accountSid'    => 'your_account_sid',
108
            //主帐号令牌,对应官网开发者主账号下的 AUTH TOKEN
109
            'accountToken'  => 'your_account_token',
110
            //应用Id,在官网应用列表中点击应用,对应应用详情中的APP ID
111
            //在开发调试的时候,可以使用官网自动为您分配的测试Demo的APP ID
112
            'appId'         => 'your_app_id',
113
        ],
114
115
        /*
116
         * -----------------------------------
117
         * JuHe
118
         * 聚合数据
119
         * -----------------------------------
120
         * website:https://www.juhe.cn
121
         * support template sms.
122
         */
123
        'JuHe' => [
124
            //应用App Key
125
            'key'   => 'your_key',
126
            //语音验证码播放次数
127
            'times' => 3,
128
        ],
129
130
        /*
131
         * -----------------------------------
132
         * Alidayu
133
         * 阿里大鱼代理器
134
         * -----------------------------------
135
         * website:http://www.alidayu.com
136
         * support template sms.
137
         */
138
        'Alidayu' => [
139
            //请求地址
140
            'sendUrl'           => 'http://gw.api.taobao.com/router/rest',
141
            //淘宝开放平台中,对应阿里大鱼短信应用的App Key
142
            'appKey'            => 'your_app_key',
143
            //淘宝开放平台中,对应阿里大鱼短信应用的App Secret
144
            'secretKey'         => 'your_secret_key',
145
            //短信签名,传入的短信签名必须是在阿里大鱼“管理中心-短信签名管理”中的可用签名
146
            'smsFreeSignName'   => 'your_sms_free_sign_name',
147
            //被叫号显(用于语音通知),传入的显示号码必须是阿里大鱼“管理中心-号码管理”中申请或购买的号码
148
            'calledShowNum'     => null,
149
        ],
150
151
        /*
152
         * -----------------------------------
153
         * SendCloud
154
         * -----------------------------------
155
         * website: http://sendcloud.sohu.com/sms/
156
         * support template sms.
157
         */
158
        'SendCloud' => [
159
            'smsUser'   => 'your_SMS_USER',
160
            'smsKey'    => 'your_SMS_KEY',
161
        ],
162
163
        /*
164
         * -----------------------------------
165
         * SmsBao
166
         * -----------------------------------
167
         * website: http://www.smsbao.com
168
         * support content sms.
169
         */
170
        'SmsBao' => [
171
            //注册账号
172
            'username'  => 'your_username',
173
            //账号密码(明文)
174
            'password'  => 'your_password',
175
        ],
176
177
        /*
178
         * -----------------------------------
179
         * Qcloud
180
         * 腾讯云
181
         * -----------------------------------
182
         * website:http://www.qcloud.com
183
         * support template sms.
184
         */
185
        'Qcloud' => [
186
            'appId'     => 'your_app_id',
187
            'appKey'    => 'your_app_key',
188
        ],
189
190
        /*
191
         * -----------------------------------
192
         * Aliyun
193
         * 阿里云
194
         * -----------------------------------
195
         * website:https://www.aliyun.com/product/sms
196
         * support template sms.
197
         */
198
        'Aliyun' => [
199
            'accessKeyId'       => 'your_access_key_id',
200
            'accessKeySecret'   => 'your_access_key_secret',
201
            'signName'          => 'your_sms_sign_name',
202
            'regionId'          => 'cn-shenzhen',
203
        ],
204
    ],
205
];
206