![]() |
|
Thread Tools |
#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. No members have liked this post.
|
#2
|
||||
|
||||
Anyone have a clue?
No members have liked this post.
|
#3
|
|||
|
|||
What DB error did u get?
__________________
1. Adjust File Upload Limits 2. Implementing CSRF Protection in modifications 3. Adjust PhP Variables for Memory Allocated Errors 4. open_basedir issues, try this. No members have liked this post.
|
#4
|
||||
|
||||
I changed the DB table ID but her you go. And thanks for looking at it.
No members have liked this post.
|
#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?
__________________
1. Adjust File Upload Limits 2. Implementing CSRF Protection in modifications 3. Adjust PhP Variables for Memory Allocated Errors 4. open_basedir issues, try this. The following members like this post: 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 No members have liked this post.
|
#7
|
||||
|
||||
I believe (pretty sure) he gave you SQL queries you can run via ACP.
No members have liked this post.
|
#8
|
||||
|
||||
Not sure how to check in the ACP. Step by step if its not to much hassle.
Thanks No members have liked this post.
|
#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. No members have liked this post.
|
#10
|
||||
|
||||
I tried
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. No members have liked this post.
|
#11
|
||||||||
|
||||||||
He posted two, complete queries. Looks like you posted only part of the first one.
The queries are:
And:
Try them one at a time. No members have liked this post.
|
#12
|
||||||||
|
||||||||
Tried that also. Im the super admin so thats not it. aLSO TRIED IN THE sql OF PHPMyAdmin. Same result
This is the complete error I get trying either one.
And thanks for the help I really appreciate it. No members have liked this post.
Last edited by Scalemotorcars; 10 Nov 2018 at 23:09. |
#13
|
||||
|
||||
Need the guy who posted the queries to chime in, I may be mistaken what exactly it is he posted there. LOOKS like queries, might not be though. Sorry i haven't been able to help you so far. No members have liked this post.
|
#14
|
||||
|
||||
Ok I added my prefix to the query and it worked. I got 3 pages of results just for the Plugin query.
Now what? No members have liked this post.
|
#15
|
||||
|
||||
Originally Posted by Scalemotorcars
No idea. Can't be good though.![]()
snakes was online today, maybe he will chime in. No members have liked this post.
|
![]() |
«
Previous Thread
|
Next Thread
»
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Thread Tools | |
|
|
New To Site? | Need Help? |
All times are GMT. The time now is 13:37.