Skip to content
This repository was archived by the owner on Dec 15, 2022. It is now read-only.

Object __proto__ can be hijacked #23

@winstliu

Description

@winstliu

Running CSON.readFile on the following CSON results in the callback object's __proto__ being hijacked:

'__proto__':
  toString: 1

season-incorrect-proto

Any calls to the object's .toString() method will fail as toString is now an object.

This also has the side effect of preventing season from properly returning __proto__ keys (which can be useful in, for example, snippets).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions