Skip to content

GitLab

  • Menu
Projects Groups Snippets
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
    • Switch to GitLab Next
  • Sign in / Register
  • GnuTLS GnuTLS
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Locked Files
  • Issues 237
    • Issues 237
    • List
    • Boards
    • Service Desk
    • Milestones
    • Iterations
    • Requirements
  • Merge requests 16
    • Merge requests 16
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
    • Test Cases
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Code review
    • Insights
    • Issue
    • Repository
  • Wiki
    • Wiki
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar

GitLab 15.0 is launching on May 22! This version brings many exciting improvements, but also removes deprecated features and introduces breaking changes that may impact your workflow. To see what is being deprecated and removed, please visit Breaking changes in 15.0 and Deprecations.

  • gnutls
  • GnuTLSGnuTLS
  • Merge requests
  • !1134

Gnutls no longer accepts certificates whose notbefore field is a non-digits string

  • Review changes

  • Download
  • Email patches
  • Plain diff
Closed
llqll requested to merge llqll/gnutls:issue-870 into master Dec 17, 2019
  • Overview 10
  • Commits 4
  • Pipelines 4
  • Changes 4

issues #870 (closed) describes gnutls accepting a certificate whose notbefore field is a non-digits string. According to RFC5280, gnutls should reject such certificates. the time in the certificate must be a string of numbers.

To solve the issue,add a check for the value of the notbefore or notafter field in the function _gnutls_utcTime2gtime. check whether the value of the notbefore or notafter field contains non-digits characters, and reject certificates whose notbefore or notafter include non-digits characters.

We also add file tests/cert-tests/cert-non-digits-time. This file is used to check if gnutls accepts a certificate whose time field is a non-digits string. this issue was found by our semantic differential fuzzer.

Resolves: #870 (closed)

image text

Checklist

  • Commits have Signed-off-by: with name/author being identical to the commit author
  • Code modified for feature
  • Test suite updated with functionality tests
  • Test suite updated with negative tests
  • Documentation updated / NEWS entry present (for non-trivial changes)
  • CI timeout is 2h or higher (see Settings/CICD/General pipelines/Timeout)

Reviewer's checklist:

  • Any issues marked for closing are addressed
  • There is a test suite reasonably covering new functionality or modifications
  • Function naming, parameters, return values, types, etc., are consistent and according to CONTRIBUTION.md
  • This feature/change has adequate documentation added
  • No obvious mistakes in the code
Edited Dec 18, 2019 by llqll
Assignee
Assign to
Reviewer
Request review from
Time tracking
Source branch: issue-870