Skip to content
This repository has been archived by the owner on Apr 12, 2024. It is now read-only.

ng-attr-action and ng-attr-srcdoc allow binding to Javascript #4927

Closed
chirayuk opened this issue Nov 12, 2013 · 0 comments
Closed

ng-attr-action and ng-attr-srcdoc allow binding to Javascript #4927

chirayuk opened this issue Nov 12, 2013 · 0 comments
Assignees

Comments

@chirayuk
Copy link
Contributor

Ref: https://code.google.com/p/mustache-security/wiki/AngularJS#The_State_of_AngularJS_1.2.0

<html ng-app>
<head>
        <script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.2.0-rc.2/angular.min.js"></script>
</head>
<body>
        <form ng-attr-action="{{'javascript:'}}alert(1)"><button>CLICK</button></form>
        <iframe ng-attr-srcdoc="{{'<img src=x onerror=alert(1)>'}}"></a>
</body>
@ghost ghost assigned chirayuk Nov 12, 2013
chirayuk added a commit to chirayuk/angular.js that referenced this issue Nov 13, 2013
Require bindings to form[action] to be $sce.RESOURCE_URL and bindings to
iframe[srcdoc] to be $sce.HTML

Closes angular#4927
jamesdaily pushed a commit to jamesdaily/angular.js that referenced this issue Jan 27, 2014
Require bindings to form[action] to be $sce.RESOURCE_URL and bindings to
iframe[srcdoc] to be $sce.HTML

Closes angular#4927
Closes angular#4933
jamesdaily pushed a commit to jamesdaily/angular.js that referenced this issue Jan 27, 2014
Require bindings to form[action] to be $sce.RESOURCE_URL and bindings to
iframe[srcdoc] to be $sce.HTML

Closes angular#4927
Closes angular#4933
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant