Issues (850)

Security Analysis    4 potential vulnerabilities

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 (1)
Code Injection enables an attacker to execute arbitrary code on the server.
  Variable Injection (2)
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 (1)
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.

includes/admin/views/wizard-gateways.php (1 issue)

Labels
Severity
1
<?php
2
/**
3
 * Displays the set-up wizard bussiness settings.
4
 *
5
 */
6
7
defined( 'ABSPATH' ) || exit;
8
9
global $aui_bs5;
10
?>
11
<div class="card shadow-sm my-5">'
12
13
    <form method="post" class="text-center card-body">
14
        <div class="gp-wizard-payments">
15
            <h2 class="gd-settings-title h3 "><?php esc_html_e( 'Gateway Setup', 'invoicing' ); ?></h2>
16
            <p><?php esc_html_e( 'Below are a few gateways that can be setup in a few seconds.', 'invoicing' ); ?>
17
                <br>
18
                <?php esc_html_e( 'We have 20+ Gateways that can be setup later.', 'invoicing' ); ?>
19
            </p>
20
21
            <ul class="list-group">
22
23
				<li class="list-group-item d-flex justify-content-between align-items-center">
24
				    <span class="mr-auto"><img src="<?php echo esc_url( WPINV_PLUGIN_URL . 'assets/images/stripe-verified.svg' ); ?>" class="<?php echo( $aui_bs5 ? 'ms-n2' : 'ml-n2' ); ?>" alt="Stripe"></span>
25
				    <?php if ( false === wpinv_get_option( 'stripe_live_connect_account_id' ) ) : ?>
26
                        <a href="<?php
27
                        echo esc_url( wp_nonce_url(
28
                            add_query_arg(
29
                                array(
30
                                    'getpaid-admin-action' => 'connect_gateway',
31
                                    'plugin'               => 'stripe',
32
                                    'redirect'             => urlencode( add_query_arg( 'step', 'payments' ) ),
33
                                ),
34
                                admin_url()
35
                            ),
36
                            'getpaid-nonce',
37
                            'getpaid-nonce'
38
                        ));
39
                        ?>"
40
                        class="btn btn-sm btn-outline-primary"><?php esc_html_e( 'Connect', 'invoicing' ); ?></a>
41
                    <?php else : ?>
42
                        <span class="btn btn-sm btn-success"><?php esc_html_e( 'Connected', 'invoicing' ); ?></span>
43
                    <?php endif; ?>
44
				</li>
45
46
				<li class="list-group-item">
47
                    <div class="d-flex justify-content-between align-items-center">
48
                        <span class="<?php echo( $aui_bs5 ? 'me-auto' : 'mr-auto' ); ?>">
49
                            <img src="<?php echo esc_url( WPINV_PLUGIN_URL . 'assets/images/pp-logo-150px.webp' ); ?>" class="" alt="PayPal" height="25">
50
                        </span>
51
                        <a
52
                            href="#"
53
                            onclick="jQuery('.getpaid-setup-paypal-input').toggleClass('d-none'); return false;"
54
                            class="getpaid-setup-paypal btn btn-sm btn-outline-primary"><?php esc_html_e( 'Set-up', 'invoicing' ); ?></a>
55
                    </div>
56
                    <div class="mt-4 getpaid-setup-paypal-input d-none">
57
                        <input type="text" placeholder="<?php esc_attr_e( 'PayPal Email', 'invoicing' ); ?>" name="paypal-email" class="form-control" value="<?php echo esc_attr( wpinv_get_option( 'paypal_email' ) ); ?>">
0 ignored issues
show
It seems like wpinv_get_option('paypal_email') can also be of type false; however, parameter $text of esc_attr() does only seem to accept string, maybe add an additional type check? ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-type  annotation

57
                        <input type="text" placeholder="<?php esc_attr_e( 'PayPal Email', 'invoicing' ); ?>" name="paypal-email" class="form-control" value="<?php echo esc_attr( /** @scrutinizer ignore-type */ wpinv_get_option( 'paypal_email' ) ); ?>">
Loading history...
58
                    </div>
59
                </li>
60
61
				<li class="list-group-item d-flex justify-content-between align-items-center">
62
					<span class="<?php echo( $aui_bs5 ? 'me-auto' : 'mr-auto' ); ?>"><?php esc_html_e( 'Test Gateway', 'invoicing' ); ?></span>
63
					<div class="<?php echo ( $aui_bs5 ? 'form-check form-switch' : 'custom-control custom-switch' ); ?>">
64
						<input type="checkbox" name="enable-manual-gateway" id="enable-manual-gateway" value="1" class="<?php echo ( $aui_bs5 ? 'form-check-input' : 'custom-control-input' ); ?>" <?php checked( wpinv_is_gateway_active( 'manual' ) ); ?>>
65
						<label class="<?php echo ( $aui_bs5 ? 'form-check-label' : 'custom-control-label' ); ?>" for="enable-manual-gateway"></label>
66
					</div>
67
				</li>
68
			</ul>
69
        </div>
70
71
        <p class="gp-setup-actions step text-center mt-4">
72
			<input type="submit" class="btn btn-primary" value="<?php esc_attr_e( 'Continue', 'invoicing' ); ?>" />
73
		</p>
74
        
75
        <?php getpaid_hidden_field( 'save_step', 1 ); ?>
76
        <?php wp_nonce_field( 'getpaid-setup-wizard', 'getpaid-setup-wizard' ); ?>
77
    </form>
78
</div>
79