Issues (10)

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/USPS/ShipmentEvent.php (8 issues)

Severity

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
 * Slince shipment tracker library
4
 * @author Tao <[email protected]>
5
 */
6
namespace Slince\ShipmentTracking\USPS;
7
8
use Slince\ShipmentTracking\Foundation\ShipmentEvent as BaseShipmentEvent;
9
10
class ShipmentEvent extends BaseShipmentEvent
11
{
12
    /**
13
     * @deprecated
14
     * @var string
15
     */
16
    protected $day;
17
18
    /**
19
     * @deprecated
20
     * @var string
21
     */
22
    protected $city;
23
24
    /**
25
     * @deprecated
26
     * @var string
27
     */
28
    protected $state;
29
30
    /**
31
     * @var string
32
     */
33
    protected $zipCode;
34
35
    /**
36
     * @deprecated
37
     * @var string
38
     */
39
    protected $country;
40
41
    /**
42
     * @return string
43
     * @deprecated
44
     */
45
    public function getCity()
46
    {
47
        return $this->city;
0 ignored issues
show
Deprecated Code introduced by
The property Slince\ShipmentTracking\USPS\ShipmentEvent::$city has been deprecated.

This property has been deprecated. The supplier of the class has supplied an explanatory message.

The explanatory message should give you some clue as to whether and when the property will be removed from the class and what other property to use instead.

Loading history...
48
    }
49
50
    /**
51
     * @param string $city
52
     * @return ShipmentEvent
53
     * @deprecated
54
     */
55
    public function setCity($city)
56
    {
57
        $this->city = $city;
0 ignored issues
show
Deprecated Code introduced by
The property Slince\ShipmentTracking\USPS\ShipmentEvent::$city has been deprecated.

This property has been deprecated. The supplier of the class has supplied an explanatory message.

The explanatory message should give you some clue as to whether and when the property will be removed from the class and what other property to use instead.

Loading history...
58
        return $this;
59
    }
60
61
    /**
62
     * @return string
63
     * @deprecated
64
     */
65
    public function getCountry()
66
    {
67
        return $this->country;
0 ignored issues
show
Deprecated Code introduced by
The property Slince\ShipmentTracking\...ShipmentEvent::$country has been deprecated.

This property has been deprecated. The supplier of the class has supplied an explanatory message.

The explanatory message should give you some clue as to whether and when the property will be removed from the class and what other property to use instead.

Loading history...
68
    }
69
70
    /**
71
     * @param string $country
72
     * @return ShipmentEvent
73
     * @deprecated
74
     */
75
    public function setCountry($country)
76
    {
77
        $this->country = $country;
0 ignored issues
show
Deprecated Code introduced by
The property Slince\ShipmentTracking\...ShipmentEvent::$country has been deprecated.

This property has been deprecated. The supplier of the class has supplied an explanatory message.

The explanatory message should give you some clue as to whether and when the property will be removed from the class and what other property to use instead.

Loading history...
78
        return $this;
79
    }
80
81
    /**
82
     * @return string
83
     * @deprecated
84
     */
85
    public function getDay()
86
    {
87
        return $this->day;
0 ignored issues
show
Deprecated Code introduced by
The property Slince\ShipmentTracking\USPS\ShipmentEvent::$day has been deprecated.

This property has been deprecated. The supplier of the class has supplied an explanatory message.

The explanatory message should give you some clue as to whether and when the property will be removed from the class and what other property to use instead.

Loading history...
88
    }
89
90
    /**
91
     * @param string $day
92
     * @return ShipmentEvent
93
     * @deprecated
94
     */
95
    public function setDay($day)
96
    {
97
        $this->day = $day;
0 ignored issues
show
Deprecated Code introduced by
The property Slince\ShipmentTracking\USPS\ShipmentEvent::$day has been deprecated.

This property has been deprecated. The supplier of the class has supplied an explanatory message.

The explanatory message should give you some clue as to whether and when the property will be removed from the class and what other property to use instead.

Loading history...
98
        return $this;
99
    }
100
101
    /**
102
     * @return string
103
     */
104
    public function getState()
105
    {
106
        return $this->state;
0 ignored issues
show
Deprecated Code introduced by
The property Slince\ShipmentTracking\USPS\ShipmentEvent::$state has been deprecated.

This property has been deprecated. The supplier of the class has supplied an explanatory message.

The explanatory message should give you some clue as to whether and when the property will be removed from the class and what other property to use instead.

Loading history...
107
    }
108
109
    /**
110
     * @param string $state
111
     * @return ShipmentEvent
112
     * @deprecated
113
     */
114
    public function setState($state)
115
    {
116
        $this->state = $state;
0 ignored issues
show
Deprecated Code introduced by
The property Slince\ShipmentTracking\USPS\ShipmentEvent::$state has been deprecated.

This property has been deprecated. The supplier of the class has supplied an explanatory message.

The explanatory message should give you some clue as to whether and when the property will be removed from the class and what other property to use instead.

Loading history...
117
        return $this;
118
    }
119
120
    /**
121
     * @return string
122
     */
123
    public function getZipCode()
124
    {
125
        return $this->zipCode;
126
    }
127
128
    /**
129
     * @param string $zipCode
130
     * @return ShipmentEvent
131
     */
132
    public function setZipCode($zipCode)
133
    {
134
        $this->zipCode = $zipCode;
135
        return $this;
136
    }
137
}