Back

VB035

Kill statement

Visual Basic 6
Warning
Security

Kill deletes files, accepts wildcards, and asks nothing; with any user-influenced path it is arbitrary file deletion

Kill deletes files, accepts wildcards, and asks nothing; with any user-influenced path it is arbitrary file deletion.

Why this severity

Kill deletes files, accepts wildcards, and asks nothing; with any user-influenced path it is arbitrary file deletion.


Known false positives

cleanup of paths the program itself created.

Remediation example

Kill tempDir & "\" & sessionFile ' fixed name, no user input, no wildcards

Reconnecting… Connection lost. Reload