Project

General

Profile

Bug #2212

Validator throws exception when getting back a Data packet that is not a certificate

Added by Shock Jiang almost 7 years ago. Updated almost 7 years ago.

Status:
Closed
Priority:
High
Assignee:
Category:
Security
Target version:
Start date:
11/23/2014
Due date:
% Done:

100%

Estimated time:

Description

I find this problem when testing NDNS, where validator requests certificate from NDNS.

When validator receives back anything but a valid certificate, it throws an exception "BER decode error", which causes some applications to unexpectedly fail.

It is not possible to handle this exception inside the application, as it is getting thrown from the inside of Face::processEvents() loop.

#1

Updated by Junxiao Shi almost 7 years ago

  • Description updated (diff)

Please attach a code snippet that reproduces this problem.

I think Validator shouldn't throw exception. If something is wrong, it should declare that validation has failed.

#2

Updated by Alex Afanasyev almost 7 years ago

  • Subject changed from Validator throws exception when getting a NDNS-NACK to Validator throws exception when getting back a Data packet that is not a certificate
  • Description updated (diff)
  • Category set to Security
  • Assignee set to Yingdi Yu
  • Priority changed from Normal to High
  • Target version set to v0.3
#3

Updated by Alex Afanasyev almost 7 years ago

The unhandled exception, I believe, is CryptoPP::BERDecodeErr.

#4

Updated by Yingdi Yu almost 7 years ago

  • Status changed from New to Code review
#5

Updated by Yingdi Yu almost 7 years ago

  • % Done changed from 0 to 100
#6

Updated by Yingdi Yu almost 7 years ago

  • Status changed from Code review to Closed

Also available in: Atom PDF