Slide 7
Slide 7 text
7
sqdʹΑΔෆਖ਼ΫΤϦݕ
$ cat whitelist
SELECT * FROM users WHERE id = ?
$ cat query.log | jq -r .query
SELECT * FROM users WHERE id = 1
SELECT * FROM users WHERE id = 2
SELECT * FROM users
DROP TABLE users
ϗϫΠτϦετ
ݕରͷΫΤϦ܈
ϦςϥϧϓϨʔεϗϧμʔʹ͢Δ
$ cat query.log | jq -r .query | sqd -W whitelist
SELECT * FROM users
DROP TABLE users
ݕ͞ΕͨΫΤϦ
ϗϫΠτϦετϑΝΠϧΛࢦఆ
ݕରͷΫΤϦ܈Λೖྗ