In manager.c in ss-manager in shadowsocks-libev 3.1.0, improper parsing allows command injection via shell metacharacters in a JSON configuration request received via 127.0.0.1 UDP traffic, related to the addserver, buildconfig, and constructcommandline functions.
[
{
"deprecated": false,
"target": {
"file": "src/manager.c",
"function": "build_config"
},
"digest": {
"length": 1080.0,
"function_hash": "277076487168416077177268514653106974475"
},
"id": "CVE-2017-15924-738cd4f1",
"signature_type": "Function",
"source": "https://github.com/shadowsocks/shadowsocks-libev/commit/c67d275803dc6ea22c558d06b1f7ba9f94cd8de3",
"signature_version": "v1"
},
{
"deprecated": false,
"target": {
"file": "src/manager.c",
"function": "construct_command_line"
},
"digest": {
"length": 2671.0,
"function_hash": "51715648287725508804296421552476954729"
},
"id": "CVE-2017-15924-7e3eb6fc",
"signature_type": "Function",
"source": "https://github.com/shadowsocks/shadowsocks-libev/commit/c67d275803dc6ea22c558d06b1f7ba9f94cd8de3",
"signature_version": "v1"
},
{
"deprecated": false,
"target": {
"file": "src/manager.c"
},
"digest": {
"threshold": 0.9,
"line_hashes": [
"169837448405245710347467634324323478422",
"327659273079150167083867326886170459882",
"301484648099712372651071308334292968805",
"81374173212013676119655546543043961364",
"40156762308119617865492505593162385531",
"189886026585957659222601073739168781841",
"65991846492554056196821736162134505460",
"212907375527110548919205828182184045444",
"266748927104649670767550455357153502823",
"2561586973442348593906185680394902824",
"73857112924478152416306249729309578487",
"10983231780701925607823863281532833026",
"57259832225120913902268720118809065672",
"126842709979597372642403940724571959268",
"42157759316307733695178137402041078878",
"145036398007120937366813029069073129853",
"224591225731331742064323684188427633094",
"32278634827548368364613609433937393828",
"2653600847363017017969292359007098289",
"26085178480316581020662140927533394189",
"282584403883317560828349507996565172350",
"102608600048312645466792487933083938846",
"28508456101964790122671434748187555180",
"97940369526720310290924854467897825220"
]
},
"id": "CVE-2017-15924-c25c1466",
"signature_type": "Line",
"source": "https://github.com/shadowsocks/shadowsocks-libev/commit/c67d275803dc6ea22c558d06b1f7ba9f94cd8de3",
"signature_version": "v1"
}
]