The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
How do I test for SQL Injection
I just got a DB error and searched the IP it came from and its been reported for SQL Injection. Is there a way to test to see if they were successful?
Thanks. |
#2
|
||||
|
||||
Anyone have a clue?
|
#3
|
|||
|
|||
What DB error did u get?
|
#4
|
||||
|
||||
I changed the DB table ID but her you go. And thanks for looking at it.
Quote:
|
#5
|
|||
|
|||
You can use these to scan for anything suspicious.
SELECT title, phpcode, hookname, product FROM plugin WHERE phpcode LIKE '%base64%' OR phpcode LIKE '%exec%' OR phpcode LIKE '%system%' OR phpcode like '%pass_thru%' OR phpcode like '%iframe%'; SELECT styleid, title, template FROM template WHERE template LIKE '%base64%' OR template LIKE '%exec%' OR template LIKE '%system%' OR template like '%pass_thru%' OR template like '%iframe%'; Did you locate anything in the apache/nginx etc log related to that attempted post in the cms for that time stamp? |
Благодарность от: | ||
Brandon Sheley |
#6
|
||||
|
||||
Well, using PHPmyadmin I found the below items.
I'm not sure how to do the search you're referring to. And not sure how to check apache/nginx. In laymen's terms, please. And thanks for the help. %base64% in _searchcore_text, _pmtext, and _post %exec% in _autosave, _cache, _cacheevent, _widgetconfig, _widgettype, _cronlog, _datastore, dbtech_dbseo_resolvedurl, iei_img, _language, _phrase, _plugin, _pmtext, _post, _postedithistory, _productcode, _searchcore_text, _searchgroup_text, _style, _template, _templatehistory, _thread, _user |
#7
|
||||
|
||||
I believe (pretty sure) he gave you SQL queries you can run via ACP.
|
#8
|
||||
|
||||
Not sure how to check in the ACP. Step by step if its not to much hassle.
Thanks |
#9
|
||||
|
||||
ACP>Maintenance>Execute SQL Query
One at a time, paste his queries into the manual query box and click "Continue." You have to be a Super Admin with query running permissions as defined in includes/config.php or nothing will happen, except it will let you know you don't have permission to run queries. |
#10
|
||||
|
||||
I tried
Quote:
Did I get the query wrong? Sorry I feel like a total noob. You would think after 12 years I would know how to do this. |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|