Failure to add integrity check value

Revision as of 06:05, 26 May 2009 by Deleted user (Talk | contribs)

Jump to: navigation, search

[ auto mileage logs ] [ avg antivirus key generator ] [ mcafee antivirus programs ] [ asianhotgirls ] [ 2006 australian open tennis tickets ] [ european auto part at discount prices ] [ nortan antivirus 2005 serial key ] [ antivirus software for download ] domain [ asian charm ] url [ 64 bit antivirus software ] [ kaspersky antivirus personal pro 5.0.19 ] 2005 antivirus software [ automatically restart services ] accommodation asian reservation secure travel [ toyota land cruiser australia ] [ australian german shepherd puppy ] [ australia hunter valley ] mobile antivirus software [ economy auto inc ] collective unconscious autonomic nervous system [ actress asian pic ] [ asian musclemen ] [ know about australia ] [ sexy asia carrera ] [ playstation 2 cheats grand theft auto ] [ history of african sleeping sickness ] link [ sears automotive store hours ] [ autotaser ] [ norton antivirus keygen 2005 ] [ microsoft buys antivirus company ] [ john olsen australian painter ] [ antivirus exe ] [ 2006 winantivirus ] [ 1983 australian male open winner ] index [ antivirus for macintosh ] african american art gallery [ mauna loa african violet ] weather services south africa [ symantec antivirus liveupdate error ] [ watters auto ] [ australia computer hp ] url [ gaping asian holes ] [ australian education international aei ] [ africa massage prostate south ] [ auto bc trader vancouver ] This is a Vulnerability. To view all vulnerabilities, please see the Vulnerability Category page.

Last revision (mm/dd/yy): 05/26/2009

Vulnerabilities Table of Contents


If integrity check values or "checksums" are omitted from a protocol, there is no way of determining if data has been corrupted in transmission.


  • Integrity: Data that is parsed and used may be corrupted.
  • Non-repudiation: Without a checksum it is impossible to determine if any changes have been made to the data after it was sent.

Exposure period

  • Design: Checksums are an aspect of protocol design and should be handled there.
  • Implementation: Checksums must be properly created and added to the messages in the correct manner to ensure that they are correct when sent.


  • Languages: All
  • Platforms: All

Required resources

Network proximity: Some ability to inject messages into a stream, or otherwise corrupt network traffic, would be required to capitalize on this flaw.



Likelihood of exploit


The failure to include checksum functionality in a protocol removes the first application-level check of data that can be used. The end-to-end philosophy of checks states that integrity checks should be performed at the lowest level that they can be completely implemented. Excluding further sanity checks and input validation performed by applications, the protocol's checksum is the most important level of checksum, since it can be performed more completely than at any previous level and takes into account entire messages, as opposed to single packets.

Failure to add this functionality to a protocol specification, or in the implementation of that protocol, needlessly ignores a simple solution for a very significant problem and should never be skipped.

Risk Factors



In C/C++:

int r,s;
struct hostent *h;
struct sockaddr_in rserv,lserv;
memcpy((char *) &rserv.sin_addr.s_addr, h->h_addr_list[0]
rserv.sin_port= htons(1008);
s = socket(AF_INET,SOCK_DGRAM,0);

lserv.sin_family = AF_INET;
lserv.sin_addr.s_addr = htonl(INADDR_ANY);
lserv.sin_port = htons(0);

r = bind(s, (struct sockaddr *) &lserv,sizeof(lserv));
   ,(struct sockaddr *) &rserv, sizeof(rserv));

In Java:

while(true) {
  DatagramPacket rp=new DatagramPacket(rData,rData.length);
  String in = new String(p.getData(),0, rp.getLength());
  InetAddress IPAddress = rp.getAddress();
  int port = rp.getPort();
    out = secret.getBytes();
    DatagramPacket sp =new DatagramPacket(out,out.length,
      IPAddress, port);

Related Attacks

Related Vulnerabilities

Related Controls

  • Design: Add an appropriately sized checksum to the protocol, ensuring that data received may be simply validated before it is parsed and used.
  • Implementation: Ensure that the checksums present in the protocol design are properly implemented and added to each message before it is sent.

Related Technical Impacts