Language: JavaScript
Label: vulnerable
CWE: CWE-78 \u2014 Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component.

Code:
EditorUi.prototype.adoptTheirCellsFromPage=function(b,e,f,c){var k=null!=e[EditorUi.DIFF_UPDATE]?e[EditorUi.DIFF_UPDATE][f]:null;if(null!=k&&null!=k.cells&&null!=k.cells[EditorUi.DIFF_INSERT]){e=k.cells[EditorUi.DIFF_UPDATE];for(var l={},u=0;u<k.cells[EditorUi.DIFF_INSERT].length;u++){var x=k.cells[EditorUi.DIFF_INSERT][u];l[x.id]=x}k={cells:{}};k.cells[EditorUi.DIFF_INSERT]=[];k.cells[EditorUi.DIFF_UPDATE]={};k.inserted={};this.resolveOwnInsertedCells(b.cells[EditorUi.DIFF_INSERT],l,k);this.resolveOwnUpdatedCells(b.cells[EditorUi.DIFF_UPDATE],
l,e,k);null==c[EditorUi.DIFF_UPDATE]&&(c[EditorUi.DIFF_UPDATE]={});delete k.inserted;c[EditorUi.DIFF_UPDATE][f]=k}};EditorUi.prototype.resolveOwnInsertedCells=function(b,e,f){if(null!=b)for(var c=0;c<b.length;c++){var k=b[c];null!=k&&(this.adoptParentCell(k.id,null,e,f),this.adoptTerminalCell(k.id,k,e,!0,f),this.adoptTerminalCell(k.id,k,e,!1,f))}};