Skip to content

Data returned by google API is blindly eval'd #1

Open
@jvennix-r7

Description

@jvennix-r7

This could allow arbitrary code execution if google ever responded with something that could be interpreted as executable code. The offending code is here:

https://github.com/hubot-scripts/hubot-google-translate/blob/master/src/google-translate.coffee#L106

I think JSON.parse() would be the easy fix.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions