Issues (13)

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.

resources/assets/js/app.js (2 issues)

1
import Vue from 'vue/dist/vue.js';
2
import axios from 'axios'
3
import App from './components/App.vue';
4
import ElementUI from 'element-ui'
5
import lang from 'element-ui/lib/locale/lang/en'
6
import locale from 'element-ui/lib/locale'
7
import VueHtml5Editor from 'vue-html5-editor'
8
9
Vue.use(VueHtml5Editor, {
10
    name: "vue-html5-editor",
11
    // if set true,will append module name to toolbar after icon
12
    showModuleName: true,
13
    // config image module
14
    image: {
15
        //   max file size
16
        sizeLimit: 512 * 1024,
17
        // upload config,default null and convert image to base64
18
        upload: {
19
            url: null,
20
            headers: {},
21
            params: {},
22
            fieldName: {}
23
        },
24
        // compression config,default resize image by localResizeIMG (https://github.com/think2011/localResizeIMG)
25
        // set null to disable compression
26
        compress: {
27
            width: 1600,
28
            height: 1600,
29
            quality: 80
30
        },
31
        // handle response data,return image url
32
        uploadHandler(responseText){
33
            //default accept json data like  {ok:false,msg:"unexpected"} or {ok:true,data:"image url"}
34
            var json = JSON.parse(responseText)
35
            if (!json.ok) {
36
                alert(json.msg)
0 ignored issues
show
There is no return statement in this branch, but you do return something in other branches. Did you maybe miss it? If you do not want to return anything, consider adding return undefined; explicitly.
Loading history...
37
            } else {
38
                return json.data
39
            }
40
        }
41
    },
42
    //default en-us, en-us and zh-cn are built-in
43
    language: "en-us",
44
    // the modules you don't want
45
    hiddenModules: [
46
        "full-screen",
47
        "info",
48
        "undo",
49
    ],
50
    // keep only the modules you want and customize the order.
51
    // can be used with hiddenModules together
52
    visibleModules: [
53
        "text",
54
        "color",
55
        "font",
56
        "align",
57
        "list",
58
        "link",
59
        "unlink",
60
        "tabulation",
61
        "image",
62
        "hr",
63
        "eraser",
64
    ],
65
    // extended modules
66
    modules: {
67
        //omit,reference to source code of build-in modules
68
    }
69
});
70
locale.use(lang);
71
Vue.use(ElementUI);
72
Vue.prototype.$http = axios.create();
73
74
new Vue({
0 ignored issues
show
Unused Code Best Practice introduced by
The object created with new Vue({IdentifierNode(...,false))),false,true)}) is not used but discarded. Consider invoking another function instead of a constructor if you are doing this purely for side effects.
Loading history...
75
    el: '#root',
76
    data() {
77
        return {
78
            showModal: false
79
        }
80
    },
81
    render: h => h(App),
82
});