Wireshark

  • Riverbed Technology
  • WinPcap
SHARKFEST '13 - Wireshark Developer and User Conference - June 16-19, 2013 - UC Berkeley
  • Wireshark
    • About
    • Download
    • Blog
  • Get Help
    • Ask a Question
    • FAQs
    • Documentation
    • Mailing Lists
    • Online Tools
    • Wiki
    • Bug Tracker
  • Develop
    • Get Involved
    • Developer's Guide
    • Browse the Code
    • Latest Builds

Wireshark-bugs: [Wireshark-bugs] [Bug 2509] New: SCCP dissector - assoc->calling_ssn or assoc-> called_ssn leaks to next packets

Date Index Thread Index Other Months All Mailing Lists
Date Prev Date Next Thread Prev Thread Next


From: bugzilla-daemon@xxxxxxxxxxxxx
Date: Mon, 28 Apr 2008 06:23:30 -0700 (PDT)

http://bugs.wireshark.org/bugzilla/show_bug.cgi?id=2509

           Summary: SCCP dissector - assoc->calling_ssn or assoc->called_ssn
                    leaks to next packets
           Product: Wireshark
           Version: SVN
          Platform: PC
        OS/Version: Windows XP
            Status: NEW
          Severity: Normal
          Priority: Medium
         Component: Wireshark
        AssignedTo: wireshark-bugs@xxxxxxxxxxxxx
        ReportedBy: j.pedro.fonseca@xxxxxxxxxxxxxxx


Build Information:
Paste the COMPLETE build information from "Help->About Wireshark", "wireshark
-v", or "tshark -v".
--
Hi,

The SCCP dissector uses a global variable "assoc" to keep state information
about the packet being dissected. The fields "calling_ssn" and "called_ssn" are
used to make the decision on what subdissector to call next (for example,
ssn=142 means that the RANAP dissector must be used)

It appears that, in some cases, the assoc variable isn't cleared before
dissecting the next packet. This way, the calling_ssn or called_ssn fields keep
the values from the previous packet, and the wrong dissector is called.

The problem can be fixed by changing the lines:

if (called && assoc)
    assoc->called_ssn = ssn;
else if (assoc)
    assoc->calling_ssn = ssn;



to



if (called && assoc) {
    assoc->called_ssn = ssn;
    assoc->calling_ssn = INVALID_SSN;
} else if (assoc) { 
    assoc->calling_ssn = ssn;
    assoc->called_ssn = INVALID_SSN;
}


Note that there are two instances of the above lines on the source code. Both
must be fixed.


-- 
Configure bugmail: http://bugs.wireshark.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

  • Follow-Ups:
    • [Wireshark-bugs] [Bug 2509] SCCP dissector - assoc->calling_ssn or assoc-> called_ssn leaks to next packets
      • From: bugzilla-daemon
    • [Wireshark-bugs] [Bug 2509] SCCP dissector - assoc->calling_ssn or assoc-> called_ssn leaks to next packets
      • From: bugzilla-daemon
    • [Wireshark-bugs] [Bug 2509] SCCP dissector - assoc->calling_ssn or assoc-> called_ssn leaks to next packets
      • From: bugzilla-daemon
    • [Wireshark-bugs] [Bug 2509] SCCP dissector - assoc->calling_ssn or assoc-> called_ssn leaks to next packets
      • From: bugzilla-daemon
    • [Wireshark-bugs] [Bug 2509] SCCP dissector - assoc->calling_ssn or assoc-> called_ssn leaks to next packets
      • From: bugzilla-daemon
    • [Wireshark-bugs] [Bug 2509] SCCP dissector - assoc->calling_ssn or assoc-> called_ssn leaks to next packets
      • From: bugzilla-daemon
    • [Wireshark-bugs] [Bug 2509] SCCP dissector - assoc->calling_ssn or assoc-> called_ssn leaks to next packets
      • From: bugzilla-daemon
    • [Wireshark-bugs] [Bug 2509] SCCP dissector - assoc->calling_ssn or assoc-> called_ssn leaks to next packets
      • From: bugzilla-daemon
    • [Wireshark-bugs] [Bug 2509] SCCP dissector - assoc->calling_ssn or assoc-> called_ssn leaks to next packets
      • From: bugzilla-daemon
  • Prev by Date: [Wireshark-bugs] [Bug 2508] New: Buildbot crash output: fuzz-2008-04-28-28082.pcap
  • Next by Date: [Wireshark-bugs] [Bug 639] last windows size not saved
  • Previous by thread: [Wireshark-bugs] [Bug 2508] Buildbot crash output: fuzz-2008-04-28-28082.pcap
  • Next by thread: [Wireshark-bugs] [Bug 2509] SCCP dissector - assoc->calling_ssn or assoc-> called_ssn leaks to next packets
  • Index(es):
    • Date
    • Thread

Wireshark and the "fin" logo are registered trademarks of the Wireshark Foundation