taogogo / taocms

taoCMS is an incredible tiny CMS( Content Management System) , writen in PHP and support MySQL/Sqlite as the database(MIT License)
MIT License
60 stars 21 forks source link

There is SQL blind injection at "Management article" #11

Open win1498419293 opened 2 years ago

win1498419293 commented 2 years ago

1.The location of the vulnerability is line 59 in taocms\include\Model\Cms.php, and the incoming sql statement in the update() method does not use intval to process id The location of the vulnerability is line 59 in taocms\include\Model\Cms.php, and the incoming sql statement in the update() method does not use intval to process id image

2.Log in to the background as the default account admin. image image 3.You can see action=cms&ctrl=update&id=26, this id is the id in the update method in the Cms.php file image image image 3.Test using the SQLMap tool image