J-Security Center

Title: CodePress Eval Function Script Execution Vulnerability

Severity: MODERATE

Description:

CodePress is a web-based source-code editor implemented in JavaScript.

The application is prone to a script-execution vulnerability because it fails to properly sanitize user-supplied input to the 'eval' function of the 'codepress.html' script.

Attacker-supplied scripts would run in the context of the affected site, potentially allowing the attacker to steal cookie-based authentication credentials or to control how the site is rendered to the user; other attacks are also possible.

This issue affects versions of CodePress prior to 0.9.4.

Affected Products:

  • CodePress CodePress 0.9.3

References:

Juniper Networks provides this content via a wide variety of sources and production methods. If notified of errors or omissions in the content of this page, Juniper Networks, at its discretion, will modify or remove the page or leave the content as is, depending on various factors including but not limited to the reputation and authority of the party providing the notification. Please use the contact information displayed elsewhere on this page to report any errors or omissions regarding the content on this page.