-
Notifications
You must be signed in to change notification settings - Fork 333
/
GHSA-m95x-m25c-w9mp.json
62 lines (59 loc) · 2.83 KB
/
GHSA-m95x-m25c-w9mp.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
{
"schema_version": "1.4.0",
"id": "GHSA-m95x-m25c-w9mp",
"modified": "2023-01-11T23:54:47Z",
"published": "2023-01-11T23:54:47Z",
"aliases": [
],
"summary": "XML-RPC for PHP allows access to local files via malicious argument to the Client::send method",
"details": "Abusing the `$method` argument of Client::send, it was possible to force the client to _access local files_ or _connect to undesired urls_ instead of the intended target server's url (the one used in the Client constructor).\n\nThis weakness only affects installations where all the following conditions apply, at the same time:\n\n- the xmlrpc Client is used, ie. not xmlrpc servers\n- untrusted data (eg. data from remote users) is used as value for the `$method` argument of method `Client::send()`, in conjunction with conditions which trigger usage of curl as http transport (ie. either using the https, http11 or http2 protocols, or calling `Client::setUseCurl()` beforehand)\n- either have set the Clients `return_type` property to 'xml', or make the resulting Response's object `httpResponse` member, which is intended to be used for debugging purposes only, available to 3rd parties, eg. by displaying it to the end user or serializing it in some storage (note that the same data can also be accessed via magic property `Response::raw_data`, and in the Request's `httpResponse` member)\n\nThis is most likely a very uncommon usage scenario, and as such the chances of exploitation of this issue may be low.\n\nIf it is not possible to upgrade to this release of the library at this time, a proactive security measure, to avoid the Client accessing any local file on the server which hosts it, is to add the following call to your code:\n\n $client->setCurlOptions([CURLOPT_PROTOCOLS, CURLPROTO_HTTPS|CURLPROTO_HTTP]);\n\nOriginally reported as issue #81",
"severity": [
],
"affected": [
{
"package": {
"ecosystem": "Packagist",
"name": "phpxmlrpc/phpxmlrpc"
},
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
},
{
"fixed": "4.9.0"
}
]
}
]
}
],
"references": [
{
"type": "WEB",
"url": "https://github.com/gggeek/phpxmlrpc/security/advisories/GHSA-m95x-m25c-w9mp"
},
{
"type": "WEB",
"url": "https://github.com/gggeek/phpxmlrpc/issues/81"
},
{
"type": "WEB",
"url": "https://github.com/gggeek/phpxmlrpc/commit/cf6e605e09d001ce520bfa8e7b168cfa514e663b"
},
{
"type": "PACKAGE",
"url": "https://github.com/gggeek/phpxmlrpc"
}
],
"database_specific": {
"cwe_ids": [
],
"severity": "MODERATE",
"github_reviewed": true,
"github_reviewed_at": "2023-01-11T23:54:47Z",
"nvd_published_at": null
}
}