| Package | Affected versions | Patched versions |
|---|---|---|
| org.mozilla:rhino | ≥ 1.7.15, < 1.7.15.1≥ 1.8.0, < 1.8.1< 1.7.14.1 | 1.7.15.11.8.11.7.14.1 |
| rhino | = 1.7.15= 1.8.0< 1.7.14.1 | 1.7.14.1 |
When an application passed an attacker controlled float poing number into the toFixed() function, it might lead to high CPU consumption and a potential Denial of Service.
Small numbers go through this call stack: NativeNumber.numTo > DToA.JS_dtostr > DToA.JS_dtoa > DToA.pow5mult
where pow5mult attempts to raise 5 to a ridiculous power.
Example code: (4.47118444E-314).toFixed(2)
Running one of these products? Scan your site to see whether it exposes a vulnerable version.
Scan my site free