Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

angular.fromJson not safe #57

@mhevery

Description

@mhevery

As mentioned before, the use of the Parser to serialize JSON is not safe. The following code will execute:

angular.fromJson("{'res':([1,2,3]['constructor']'constructor'())}").res

If the JSON string happened to be user-supplied it would execute code. An approach similar to json.org should be used.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions