Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

128
Views
Cómo arreglar la vulnerabilidad XSS a JavaScript

Hice un análisis de vulnerabilidad en la plataforma Veracode y encontré una vulnerabilidad XSS: Este es el código que tiene la vulnerabilidad, estoy tratando de solucionarlo, pero necesito su ayuda:

 <po-widget> <div class="po-row"> <div class="treeview-container po-md-12"> <kendo-treeview class="po-md-12 po-mt-1 po-mb-1" kendoTreeViewDragAndDrop kendoTreeViewDragAndDropEditing kendoTreeViewExpandable [expand by]="'id'" [(expandedKeys)]="expandedKeys" kendoTreeViewHierarchyBinding [childrenCampo]="'children'" [(nodes)]="treeviewItems" [textField]="'name'" kendoTreeViewSelectable [(selectedKeys)]="selectedKeys" (nodeDrop)="handleDrop($event)" (removeItem)="handleRemovedNode()" (selectionChange)="handleSelection($event)" // <==== XSS vulnerability here [selectBy]="'id'" [isSelected]="isItemSelected" >

La línea (selectionChange)= "handleSelection($event)" es vulnerable por la Plataforma.

Mi sugerencia para arreglar la vulnerabilidad es:

 (selectionChange)= XSSfix("handleSelection($event)") function XSSfix(inputXSS){ return inputXSS.replace(/\&/g, '&amp;').replace(/\</g, '&lt;').replace(/\>/g, '&gt;'); }

¿Qué piensas? ¿Es correcta esta solución? ¿Es trabajo arreglar la vulnerabilidad?

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!