ngx-file-drop icon indicating copy to clipboard operation
ngx-file-drop copied to clipboard

Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')

Open mpushki opened this issue 3 years ago • 0 comments

After checking my application I faced with this problem: (onFileDrop)="dropped($event)" more information about here

<tbody class="upload-name-style">
    <tr *ngFor="let item of files; let i=index">
        <td><strong>{{ item.relativePath }}</strong></td>
    </tr>
</tbody>

embeds untrusted data in the generated output with relativePath. This untrusted data is embedded straight into the output without proper sanitization or encoding, enabling an attacker to inject malicious code into the output.

Have you ever had to deal with such a check?

mpushki avatar Sep 29 '21 12:09 mpushki