Waraxe IT Security Portal
Login or Register
November 21, 2024
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: 88
Members: 0
Total: 88
Full disclosure
SEC Consult SA-20241112-0 :: Multiple vulnerabilities in Siemens Energy Omnivise T3000 (CVE-2024-38876, CVE-2024-38877, CVE-2024-38878, CVE-2024-38879)
Security issue in the TX Text Control .NET Server for ASP.NET.
SEC Consult SA-20241107-0 :: Multiple Vulnerabilities in HASOMED Elefant and Elefant Software Updater
Unsafe eval() in TestRail CLI
4 vulnerabilities in ibmsecurity
32 vulnerabilities in IBM Security Verify Access
xlibre Xnest security advisory & bugfix releases
APPLE-SA-10-29-2024-1 Safari 18.1
SEC Consult SA-20241030-0 :: Query Filter Injection in Ping Identity PingIDM (formerly known as ForgeRock Identity Management) (CVE-2024-23600)
SEC Consult SA-20241023-0 :: Authenticated Remote Code Execution in Multiple Xerox printers (CVE-2024-6333)
APPLE-SA-10-28-2024-8 visionOS 2.1
APPLE-SA-10-28-2024-7 tvOS 18.1
APPLE-SA-10-28-2024-6 watchOS 11.1
APPLE-SA-10-28-2024-5 macOS Ventura 13.7.1
APPLE-SA-10-28-2024-4 macOS Sonoma 14.7.1
Log in Register Forum FAQ Memberlist Search
IT Security and Insecurity Portal

www.waraxe.us Forum Index -> All other security holes -> TCP Session Hijacking >> By 0xbadfaceX
Post new topicReply to topic View previous topic :: View next topic
TCP Session Hijacking >> By 0xbadfaceX
PostPosted: Thu Aug 07, 2008 2:32 pm Reply with quote
0xbadfaceX
Regular user
Regular user
Joined: Aug 01, 2008
Posts: 12
Location: .bashrc$>




TCP Session Hijacking.

By 0xbadfaceX. Razz

TCP Session Hijacking allows you to redirect a TCP flow. A hacker can then override protection with a password (like telnet or FTP). The need for listening (sniffing) restricts the scope of this attack to the physical network of the target. Before detailing the attack, we explain some basic principles of TCP.

We will not disclose here the mysteries of the TCP protocol, but only the main points to understand the attack. The header TCP is made up of several fields:

* Port source and destination port, to identify the connection between two machines;
* The sequence number that identifies each byte sent;
* Acknowledgement number that corresponds to the number of acquittal last byte received;
* Flags, along with those that will interest us are:
o SYN which synchronizes the sequence numbers when establishing a connection;
o ACK, the flag of a TCP segment;
o HSP, which tells the receiver to trace the data to the application.



The sequence numbers will change depending on the number of bytes of data sent. The number sequence is represented by Seq, the acknowledgement number is found after the HSP and ACK flags.

The attack creates a state of desynchronization on each side of the TCP connection, making possible the flight session. A connection is out of sync when the sequence number of the next byte sent by the A machine is different number sequence next byte to receive a B. And conversely, there is desynchronization when the sequence number of the next byte sent by the machine B is different from the sequence number of the next byte to be received by A.

When B receives its package, A waits for a package with a number of acquittal x +60. If the next package by B does not have this number of acquittal then A and B are as desynchronized.

Specifically, a pirate with a machine C wants to steal a Telnet session between machines A and B. In a first step, the C machine sniffs the Telnet traffic (TCP port 23) between A and B. Once the attacker thinks A had time to authenticate to the Telnet service on the B machine, it desynchronizes the machine A against B. For this, he forges a package with the source IP address of the A machine and the TCP acknowledgement number expected by B. The B machine accepts the package. In addition desynchronizing the TCP connection, this package allows the attacker to inject a command via Telnet session previously established by A. Indeed, this package can carry data (HSP flag equal to 1).

These techniques are implemented by the hunt program. Wink

_________________
,
View user's profile Send private message Visit poster's website
PostPosted: Mon Aug 11, 2008 1:28 pm Reply with quote
lenny
Valuable expert
Valuable expert
Joined: May 15, 2008
Posts: 275




Interesting, thanks for that! Yet another weapon to add to my armoury =]
View user's profile Send private message
TCP Session Hijacking >> By 0xbadfaceX
www.waraxe.us Forum Index -> All other security holes
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



Space Raider game for Android, free download - Space Raider gameplay video - Zone Raider mobile games
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.043 Seconds