SRS is a simple, high-efficiency, real-time video server. SRS's /api/v1/vhosts/vid-<id>?callback=<payload> endpoint didn't filter the callback function name which led to injecting malicious javascript payloads and executing XSS ( Cross-Site Scripting). This vulnerability is fixed in 5.0.210 and 6.0.121.
{
"cna_assigner": "GitHub_M",
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/29xxx/CVE-2024-29882.json",
"cwe_ids": [
"CWE-79"
]
}[
{
"digest": {
"line_hashes": [
"51331076260704782388217210023354136357",
"212296809016094972470653598659566661353",
"27929993880543800799733862745352639025",
"221180860166256488453906821182588866426",
"153482185210129231678574555006858481119",
"98343271453330675262125054440273668624",
"306028441414888796757303718790337975647",
"209091840125063562187424494637493943060",
"317442199544706622938477496081021741511",
"68442070361506501621736883367351764626",
"95723457923698245765128480367895454891",
"335262093353938068893257561734285562251"
],
"threshold": 0.9
},
"deprecated": false,
"signature_type": "Line",
"signature_version": "v1",
"id": "CVE-2024-29882-094323cc",
"target": {
"file": "trunk/src/protocol/srs_protocol_http_conn.cpp"
},
"source": "https://github.com/ossrs/srs/commit/244ce7bc013a0b805274a65132a2980680ba6b9d"
},
{
"digest": {
"line_hashes": [
"126123604150206928519426776614144614196",
"169197213057109872522810241202788724393",
"57766131618121208857558053770792752477",
"59247926496317154915664063860174616185"
],
"threshold": 0.9
},
"deprecated": false,
"signature_type": "Line",
"signature_version": "v1",
"id": "CVE-2024-29882-dc66ef25",
"target": {
"file": "trunk/src/kernel/srs_kernel_error.hpp"
},
"source": "https://github.com/ossrs/srs/commit/244ce7bc013a0b805274a65132a2980680ba6b9d"
},
{
"digest": {
"function_hash": "111536652742290614265247733577924431419",
"length": 748.0
},
"deprecated": false,
"signature_type": "Function",
"signature_version": "v1",
"id": "CVE-2024-29882-e2715aae",
"target": {
"file": "trunk/src/protocol/srs_protocol_http_conn.cpp",
"function": "SrsHttpMessage::set_url"
},
"source": "https://github.com/ossrs/srs/commit/244ce7bc013a0b805274a65132a2980680ba6b9d"
}
]