|
| 1 | +# Rhino 1.7.12 |
| 2 | +## January 13, 2020 |
| 3 | + |
| 4 | +### XML external entities disabled by default |
| 5 | + |
| 6 | +As of this release, Rhino makes "XML external entity injections" more difficult |
| 7 | +by disabling fetching of external DTDs and stylesheets by default, |
| 8 | +as recommended in the (OWASP Cheat Sheet) |
| 9 | +[https://github.com/OWASP/CheatSheetSeries/blob/master/cheatsheets/XML_External_Entity_Prevention_Cheat_Sheet.md]. |
| 10 | +Even though this may break some existing projects, the fact that this |
| 11 | +vulnerability is in the OWASP top 10 makes it important enough to change |
| 12 | +the default. |
| 13 | + |
| 14 | +Developers who still need this old capability can re-enable it by setting the |
| 15 | +Context feature flag FEATURE_ENABLE_XML_SECURE_PARSING to false. (The default |
| 16 | +is true.) |
| 17 | + |
| 18 | +### New JAR for embedding use cases |
| 19 | + |
| 20 | +This release also includes a second JAR artifact, "rhino-runtime.jar". This is |
| 21 | +simply the existing Rhino JAR with the "tools" source directory excluded. |
| 22 | +This directory includes the Rhino shell as well as the default "Global" |
| 23 | +object, which includes capabilities to load and process external source |
| 24 | +code. |
| 25 | + |
| 26 | +Since some automated source-scanning tools mark these capabilties as insecure, |
| 27 | +this new JAR provides a way to only include the parts of Rhino that embedders |
| 28 | +typically need without pulling in additional capabilities. |
| 29 | + |
| 30 | +Developers who typically embed "rhino.jar" might consider embedding "rhino-runtime.jar" |
| 31 | +instead if they do not need all this. |
| 32 | + |
| 33 | +Thanks to the following developers for the contributions below! |
| 34 | + |
| 35 | +Aditya Pal (1): |
| 36 | +* Fix syntax error for comments in array (#607) |
| 37 | + |
| 38 | +Chris Smith (1): |
| 39 | +* Adding secure configuration for XML parsers (#600) |
| 40 | + |
| 41 | +Gregory Brail (12): |
| 42 | +* Update versions for 1.7.12 release. |
| 43 | +* Fix a code generation bug for generators. |
| 44 | +* Fix "fall through" comment. |
| 45 | +* Fix static analysis around NaN values. |
| 46 | +* More isNaN fixes and one rounding bug. |
| 47 | +* Make XML processor configuration more robust. |
| 48 | +* Enable SpotBugs plugin. |
| 49 | +* Fix minor static analysis findings. |
| 50 | +* Increase Travis timeout. |
| 51 | +* Disable more flaky "BigO" tests. |
| 52 | +* Fix handling of "return" in iterators. |
| 53 | +* Undo setting some members "final". |
| 54 | + |
| 55 | +Ivan Di Francesco (1): |
| 56 | +* Fix warnings (#596) |
| 57 | + |
| 58 | +Roland Praml (2): |
| 59 | +* FIX: NativeJavaObject.getDefaultValue recognizes numbers correctly |
| 60 | +* #511 fixing InterfaceAdapter abstract name lookup. |
| 61 | + |
| 62 | +Stijn Kliemesch (7): |
| 63 | +* Private static method ScriptRuntime.enumInitOrder(Context,IdEnumeration) no longer expects given IdEnumeration's property obj to be of type ScriptableObject specifically, only of type SymbolScriptable. |
| 64 | +* Added testclass IterableTest to test iterable implementations, currently with one testcase for a host object, specifically one that uses Array Iterator. |
| 65 | +* Added more tests to IterableTest. |
| 66 | +* Fix for #616 (#617) |
| 67 | +* Fixes for calling several Object.prototype members. |
| 68 | +* Fixed dynamic scoping for implementations of Object.create and Object.defineProperties |
| 69 | +* Testcase for dynamic scoping and Object.create. |
| 70 | + |
| 71 | +nename0 (2): |
| 72 | +* Fix Array.include return a wrapped Boolean |
| 73 | +* implement Array.includes to align to specs |
| 74 | + |
| 75 | +RBRi (20): |
| 76 | +* fix for Map/Set working with ConsString as key also; closes #583 |
| 77 | +* fix propertyIsEnumerable when using an index to access string; closes #582 |
| 78 | +* ignore surplus search/match/replace parameters; closes #581 |
| 79 | +* add support for setPrototypeOf |
| 80 | +* fixed imports |
| 81 | +* RangeError should be throw if the argument of Number.prototype.toFixed is less than 0 fixes #587 |
| 82 | +* fix interpreter fallback when using streams (fixes #592) |
| 83 | +* Parser already always reads the reader into a string. Move this reader handling to the Context to be able to fall back to the interpreter in all cases. |
| 84 | +* fix imports |
| 85 | +* functions declared as var f = function f() {...} within a function should not impact higher scope variable with the same name |
| 86 | +* functions declared as var f = function f() {...} within a function should not impact higher scope variable with the same name |
| 87 | +* fix Boolean(document.all) |
| 88 | +* many more tests are passing already and some cleanup |
| 89 | +* add tests for built-ins/ThrowTypeError and built-ins/TypedArray |
| 90 | +* add tests for built-ins/TypedArrays |
| 91 | +* fix BYTES_PER_ELEMENT property |
| 92 | +* fix BYTES_PER_ELEMENT prototype property |
| 93 | +* fix TypedArray constructor arity |
| 94 | +* Fix issue with parseInt's handling of leading zeroes |
| 95 | +* #529 (#628) |
| 96 | + |
1 | 97 | # Rhino 1.7.11
|
2 | 98 | ## May 30, 2019
|
3 | 99 |
|
|
0 commit comments