René's URL Explorer Experiment


Title: $processModelValue() cannot pass objects through $formatters properly · Issue #17019 · angular/angular.js · GitHub

Open Graph Title: $processModelValue() cannot pass objects through $formatters properly · Issue #17019 · angular/angular.js

X Title: $processModelValue() cannot pass objects through $formatters properly · Issue #17019 · angular/angular.js

Description: I'm submitting a ... regression from 1.7.0 security issue issue caused by a new browser version other: . Current behavior: Currently, $setViewValue(value) function accepts objects as a value, but requires them to be a angular.copy of the...

Open Graph Description: I'm submitting a ... regression from 1.7.0 security issue issue caused by a new browser version other: . Current behavior: Currently, $setViewValue(value) function accepts objects as a value, but r...

X Description: I'm submitting a ... regression from 1.7.0 security issue issue caused by a new browser version other: . Current behavior: Currently, $setViewValue(value) function accepts objects as a value, b...

Opengraph URL: https://github.com/angular/angular.js/issues/17019

X: @github

direct link

Domain: patch-diff.githubusercontent.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"$processModelValue() cannot pass objects through $formatters properly","articleBody":"\r\n**I'm submitting a ...**\r\n\u003c!-- (check one with \"x\") --\u003e\r\n- [ ] regression from 1.7.0\r\n- [X] security issue\r\n- [ ] issue caused by a new browser version\r\n- [ ] other: .\r\n\r\n**Current behavior:**\r\nCurrently, $setViewValue(value) function accepts objects as a value, but requires them to be a angular.copy of the previous object - since otherwise it will not detect the change (no deep comparison). This is expected and documented behaviour. The opposite function, however, $processModelValue() function cannot properly process the $modelValue which is an object (an end result of the $setViewValue(object) function above), even though it implicitly should. It improperly treats it as a simple type, and within the $$format() function makes new $viewValue and $modelValue be the two references to the same object with properties - and therefore all $formatters also affect $modelValue where they should not - which affects $validators and causes them to fail where they should succeed. \r\n\r\nThis means that $modelValue object is being stored directly from user input, circumventing parsers altogether - which is a security concern.\r\n\r\n**Expected behavior:**\r\nThe $processModelValue() and consequently $$format() functions should properly detect if the $modelValue is an object, and ensure that formatters only act on a copy of the original $modelValue object, which copy the $$format() function should return.\r\n\r\n**Minimal reproduction of the problem with instructions:**\r\n\r\n**AngularJS version:** 1.7.9\r\n\r\n**Browser:** should be affecting ALL browsers, explicitly observed in Chrome 81\r\n\r\n**Anything else:**\r\nCan be fixed by replacing the line 1042 of ngModel.js file:\r\nFrom:\r\n`var viewValue = this.$modelValue;`\r\nTo:\r\n`var viewValue = angular.copy(this.$modelValue);`\r\n","author":{"url":"https://github.com/alutsky","@type":"Person","name":"alutsky"},"datePublished":"2020-04-23T21:19:25.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":2},"url":"https://github.com/17019/angular.js/issues/17019"}

route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:0a3e8c0c-b4de-53f2-019a-287f62f13f9c
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idA4AC:77AC4:8C9B07:C5AAFB:696E611C
html-safe-nonced2dc5750ec6e5b3324d405cdc3d4aa2b715f3a8e00c40e7a096e472afe00d6d4
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBNEFDOjc3QUM0OjhDOUIwNzpDNUFBRkI6Njk2RTYxMUMiLCJ2aXNpdG9yX2lkIjoiMTc0OTgwNTUzNjg0MTE5NTgwNCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmacc26d15775928a82eba2cdc4fa9902aae8d2a6c371b30434264105319333db029
hovercard-subject-tagissue:605881405
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/angular/angular.js/17019/issue_layout
twitter:imagehttps://opengraph.githubassets.com/f3ac6223731b07eaa22d55ea791084324e9ac164455d48c6481b513ba2778247/angular/angular.js/issues/17019
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/f3ac6223731b07eaa22d55ea791084324e9ac164455d48c6481b513ba2778247/angular/angular.js/issues/17019
og:image:altI'm submitting a ... regression from 1.7.0 security issue issue caused by a new browser version other: . Current behavior: Currently, $setViewValue(value) function accepts objects as a value, but r...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamealutsky
hostnamegithub.com
expected-hostnamegithub.com
Nonef68b42d371252b0f236260d6234f4304a806fe5ac43d59faa21fb59d80df103b
turbo-cache-controlno-preview
go-importgithub.com/angular/angular.js git https://github.com/angular/angular.js.git
octolytics-dimension-user_id139426
octolytics-dimension-user_loginangular
octolytics-dimension-repository_id460078
octolytics-dimension-repository_nwoangular/angular.js
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id460078
octolytics-dimension-repository_network_root_nwoangular/angular.js
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release6b74bc8dbcd10b5d69fd9ee9d2cfdc8b35e18a4c
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://patch-diff.githubusercontent.com/angular/angular.js/issues/17019#start-of-content
https://patch-diff.githubusercontent.com/
Sign in https://patch-diff.githubusercontent.com/login?return_to=https%3A%2F%2Fgithub.com%2Fangular%2Fangular.js%2Fissues%2F17019
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub SparkBuild and deploy intelligent appshttps://github.com/features/spark
GitHub ModelsManage and compare promptshttps://github.com/features/models
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
GitHub SponsorsFund open source developershttps://github.com/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/accelerator
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://github.com/security/advanced-security
Copilot for BusinessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://patch-diff.githubusercontent.com/login?return_to=https%3A%2F%2Fgithub.com%2Fangular%2Fangular.js%2Fissues%2F17019
Sign up https://patch-diff.githubusercontent.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=angular%2Fangular.js
Reloadhttps://patch-diff.githubusercontent.com/angular/angular.js/issues/17019
Reloadhttps://patch-diff.githubusercontent.com/angular/angular.js/issues/17019
Reloadhttps://patch-diff.githubusercontent.com/angular/angular.js/issues/17019
angular https://patch-diff.githubusercontent.com/angular
angular.jshttps://patch-diff.githubusercontent.com/angular/angular.js
Notifications https://patch-diff.githubusercontent.com/login?return_to=%2Fangular%2Fangular.js
Fork 27.3k https://patch-diff.githubusercontent.com/login?return_to=%2Fangular%2Fangular.js
Star 59k https://patch-diff.githubusercontent.com/login?return_to=%2Fangular%2Fangular.js
Code https://patch-diff.githubusercontent.com/angular/angular.js
Issues 389 https://patch-diff.githubusercontent.com/angular/angular.js/issues
Pull requests 72 https://patch-diff.githubusercontent.com/angular/angular.js/pulls
Actions https://patch-diff.githubusercontent.com/angular/angular.js/actions
Projects 0 https://patch-diff.githubusercontent.com/angular/angular.js/projects
Wiki https://patch-diff.githubusercontent.com/angular/angular.js/wiki
Security Uh oh! There was an error while loading. Please reload this page. https://patch-diff.githubusercontent.com/angular/angular.js/security
Please reload this pagehttps://patch-diff.githubusercontent.com/angular/angular.js/issues/17019
Insights https://patch-diff.githubusercontent.com/angular/angular.js/pulse
Code https://patch-diff.githubusercontent.com/angular/angular.js
Issues https://patch-diff.githubusercontent.com/angular/angular.js/issues
Pull requests https://patch-diff.githubusercontent.com/angular/angular.js/pulls
Actions https://patch-diff.githubusercontent.com/angular/angular.js/actions
Projects https://patch-diff.githubusercontent.com/angular/angular.js/projects
Wiki https://patch-diff.githubusercontent.com/angular/angular.js/wiki
Security https://patch-diff.githubusercontent.com/angular/angular.js/security
Insights https://patch-diff.githubusercontent.com/angular/angular.js/pulse
$processModelValue() cannot pass objects through $formatters properlyhttps://patch-diff.githubusercontent.com/angular/angular.js/issues/17019#top
https://github.com/alutsky
https://github.com/alutsky
alutskyhttps://github.com/alutsky
on Apr 23, 2020https://github.com/angular/angular.js/issues/17019#issue-605881405
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.