vj4
vj4 copied to clipboard
CSV injection when exporting contest results
... if any username, display name or problem name has some commas or other dangerous characters.
...fields aren't escaped?
No.
The code is written by @twd2: https://github.com/vijos/vj4/commit/4e41a220e05499458bafeec844fa2337b2e47f26#diff-68fca75dca4bddc4316158ccd8d3e075R331
We should rewrite it using csv.writer
or csv.DictWriter
.