Skip to content
This repository was archived by the owner on Nov 9, 2017. It is now read-only.
This repository was archived by the owner on Nov 9, 2017. It is now read-only.

Non-canonical dependency and SSL verification vulnerability #58

@padraic

Description

@padraic

Reviewing this for a client and noticed these two:

  1. The dependency in composer.json points to kertz/twitteroauth instead of abraham/twitteroauth which is the main branch for twitteroauth. Presumably to have twtteroauth registered on packagist.org and to have better compatibility. This will drift out of date with time.
  2. Both of the twitteroauth libs disable SSL verification by setting CURLOPT_SSL_VERIFYPEER to false for all HTTP requests. The Twitter API is served over HTTPS so this is a security vulnerability (publicly disclosed now for several years: Enable SSL verification abraham/twitteroauth#52).

The second can be resolved by enabling SSL verification and (since this is a single domain service) distributing the Twitter API certificate to be configured on curl. You'll need to manage the Twitter cert should it ever be replaced (e.g. have a functional test for it in the unit tests) but it may be simpler as a backup to requiring all servers to be properly configured with cert files.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions