# Bug OP-2772 - Template injection

Project: OpenProject
Status: closed
URL: https://community.openproject.org/work_packages/OP-2772

## Open points

_No work packages_

## Details

| Attribute | Value |
| --- | --- |
| Date |  |
| Priority | High |
| Module |  |
| Target versions | 5.0.19 |
| Observed in versions |  |
| Sprint |  |
| Backlog bucket |  |
| Bug found in version (deprecated) |  |
| Found in mobile app version |  |
| Follow-up feedback e-mail |  |
| Requires doc change | No |
| Accessibility | No |
| Pull preview |  |
| List |  |
| Labels |  |

## People

| Attribute | Value |
| --- | --- |
| Assignee |  |
| Accountable |  |
| Product manager |  |
| Developers |  |
| Designer |  |
| Ordered by |  |
| Signed off by |  |
| Interest by |  |

## Planning

| Attribute | Value |
| --- | --- |
| Relevance |  |

## Costs

| Attribute | Value |
| --- | --- |
| Votes |  |
| Work | 0h |
| Labor costs |  |

## Description

It is possible to inject Angular expressions (in documents, search fields, username field, etc…), to escape the sandbox and execute code. If exploited correctly, this could cause serious security issues.

Enter the following string " ‘a’.constructor.prototype.charAt=\[\].join;$eval(‘x=alert(1)’); " (without the double quotes) and surround it with {{ }} then save the document, execute the search or whatever. It should pop up an alert()
