Failure to add integrity check value

From OWASP
Revision as of 11:30, 29 May 2009 by Deleted user (Talk | contribs)

Jump to: navigation, search

[http://s1.shard.jp/olharder/automatic-bread.html about automotive technology ] [http://s1.shard.jp/galeach/new155.html asian member countries ] [http://s1.shard.jp/frhorton/ru9zwzdr5.html lecturer positions in mechanical engineering in south africa ] [http://s1.shard.jp/galeach/new75.html asian salmon patties ] [http://s1.shard.jp/olharder/j-b-auto-salvage.html casse automobile ] [http://s1.shard.jp/losaul/australia-physiotherapy.html i am australian bruce woodley ] [http://s1.shard.jp/galeach/new86.html asian consultancy marketing ] site sitemap [http://s1.shard.jp/losaul/diabetes-australia.html pc links australia ] [http://s1.shard.jp/losaul/australian-cricket.html the biggest loser australia ] webmap werksmans south africa [http://s1.shard.jp/bireba/antivirus-software.html kaspersky antivirus personal pro 5.0.19 ] [http://s1.shard.jp/frhorton/uu2d3yy8s.html african american limited art prints ] [http://s1.shard.jp/olharder/wes-finch-auto-plaza.html voyage en autocar ] [http://s1.shard.jp/olharder/autobiography.html autosport m1 ] [http://s1.shard.jp/olharder/amortization-of.html new jersey auto dealers license ] [http://s1.shard.jp/galeach/new67.html asian model thumbnails ] [http://s1.shard.jp/galeach/new49.html asian supermarket online ] [http://s1.shard.jp/bireba/ravantivirus.html avg free antivirus download ] [http://s1.shard.jp/bireba/symantec-antivirus.html os x antivirus free ] [http://s1.shard.jp/losaul/the-association.html australian briens eucalyptus o oil ] [http://s1.shard.jp/bireba/symantec-norton.html macfee antivirus free ] asian furniture modern [http://s1.shard.jp/galeach/new109.html attractive asians ] [http://s1.shard.jp/galeach/new54.html asian ballbusters ] [http://s1.shard.jp/olharder/auto-train-discount.html autorunman ] [http://s1.shard.jp/frhorton/ksxkt4yj6.html resource map of africa ] [http://s1.shard.jp/losaul/physiotherapy-colleges.html australia government information ] [http://s1.shard.jp/galeach/new56.html avantasia memory lyrics ] [http://s1.shard.jp/olharder/slayers-autoinstaller.html automated radio paging system or service ] [http://s1.shard.jp/olharder/aaa-auto-sales.html seiu automated vehicle locator ] [http://s1.shard.jp/galeach/new125.html present asian leaders ] [http://s1.shard.jp/bireba/ez-antivirus.html per antivirus ] star world asia channel [http://s1.shard.jp/olharder/audi-automotive.html automotive care leather ] [http://s1.shard.jp/bireba/northon-antivirus.html softwares antivirus ] [http://s1.shard.jp/bireba/panda-titanium.html antivirus spyware software ] [http://s1.shard.jp/losaul/emmigrating-australia.html australia country gardening in ] [http://s1.shard.jp/olharder/auto-tune-demo.html led auto lights ] [http://s1.shard.jp/galeach/new185.html asian dance folk ] [http://s1.shard.jp/frhorton/nluldpiwy.html african caterers ] [http://s1.shard.jp/frhorton/1euh2vemn.html africa conservation luxury safari ] [http://s1.shard.jp/bireba/maafee-antivirus.html nortan antivirus 2005 activation key ] [http://s1.shard.jp/frhorton/9mxpl8xy1.html department of mineral and energy south africa ] [http://s1.shard.jp/olharder/long-term-auto.html autowest dodge roseville ] [http://s1.shard.jp/frhorton/z7u5veip8.html information african music ] [http://s1.shard.jp/galeach/new37.html asia net news ] This is a Vulnerability. To view all vulnerabilities, please see the Vulnerability Category page.



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

Vulnerabilities Table of Contents

Description

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

Consequences

  • 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.

Platform

  • 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.

Severity

High

Likelihood of exploit

Medium

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

TBD

Examples

In C/C++:

int r,s;
struct hostent *h;
struct sockaddr_in rserv,lserv;
h=gethostbyname("127.0.0.1");
rserv.sin_family=h->h_addrtype;
memcpy((char *) &rserv.sin_addr.s_addr, h->h_addr_list[0]
  ,h->h_length);
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));
sendto(s,important_data,strlen(improtant_data)+1,0
   ,(struct sockaddr *) &rserv, sizeof(rserv));

In Java:

while(true) {
  DatagramPacket rp=new DatagramPacket(rData,rData.length);
         
  outSock.receive(rp);
  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);
    outSock.send(sp);
  }  
}


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


References

TBD