همهٔ گزارش‌ها
کم

Prototype Pollution in Dojox

متن اصلی

نسخه‌های متأثر

نسخه‌های متأثر
>= 1.12.0, < 1.12.8
نسخهٔ اصلاح‌شده
1.12.8
نسخه‌های متأثر
>= 1.14.0, < 1.14.6
نسخهٔ اصلاح‌شده
1.14.6
نسخه‌های متأثر
>= 1.15.0, < 1.15.3
نسخهٔ اصلاح‌شده
1.15.3
نسخه‌های متأثر
< 1.11.10
نسخهٔ اصلاح‌شده
1.11.10
نسخه‌های متأثر
>= 1.13.0, < 1.13.7
نسخهٔ اصلاح‌شده
1.13.7
نسخه‌های متأثر
>= 1.16.0, < 1.16.2
نسخهٔ اصلاح‌شده
1.16.2

بهره‌برداری

CVE-2020-5259

احتمال بهره‌برداری در ۳۰ روز آینده: 2.02%

FIRST EPSS · ۱۴۰۵/۰۸/۲۸

شرح آسیب‌پذیری

The Dojox jQuery wrapper jqMix mixin method is vulnerable to Prototype Pollution.

Affected Area:

//https://github.com/dojo/dojox/blob/master/jq.js#L442
		var tobj = {};
		for(var x in props){
			// the "tobj" condition avoid copying properties in "props"
			// inherited from Object.prototype.  For example, if obj has a custom
			// toString() method, don't overwrite it with the toString() method
			// that props inherited from Object.prototype
			if((tobj[x] === undefined || tobj[x] != props[x]) && props[x] !== undefined && obj != props[x]){
				if(dojo.isObject(obj[x]) && dojo.isObject(props[x])){
					if(dojo.isArray(props[x])){
						obj[x] = props[x];
					}else{
						obj[x] = jqMix(obj[x], props[x]);
					}
				}else{
					obj[x] = props[x];
				}

پیوندها