How are input keys exploitable by malicious users?

后端 未结 5 1107
清歌不尽
清歌不尽 2020-12-29 23:14

In the CodeIgniter PHP framework, there is a function that automatically runs on each request that, among other things, filters the GET/POST/COOKIE array keys, and kills the

5条回答
  •  太阳男子
    2020-12-30 00:00

    Say in a console I change your form's field name from name="email" to name="email\"); DROP TABLE users;

    It's not likely to be a successful XSS attack but I can see something like that doing damage to poorly coded PHP. CI is probably just trying to cover all their bases so they can have a claim to be as XSS-protected as possible.

提交回复
热议问题