Skip to content

Instantly share code, notes, and snippets.

@flavioheleno
Created July 6, 2023 16:35
Show Gist options
  • Save flavioheleno/47d12a1cf4023433879c00bf9fac9d98 to your computer and use it in GitHub Desktop.
Save flavioheleno/47d12a1cf4023433879c00bf9fac9d98 to your computer and use it in GitHub Desktop.
lockfile metadata attack
{
"require": {
"flavioheleno/interrupt": "dev-main"
}
}
{
"_readme": [
"This file locks the dependencies of your project to a known state",
"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
"This file is @generated automatically"
],
"content-hash": "dec10e4bf78c35492c6d127d419f5e5a",
"packages": [
{
"name": "flavioheleno/interrupt",
"version": "dev-main",
"source": {
"type": "git",
"url": "https://github.com/flavioheleno/interim.git",
"reference": "aff867b8c81825d2f9a6860928479b1a17c3abe1"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/flavioheleno/interim/zipball/54afb38cdea95b4996a69d9418e9015299ba1907",
"reference": "aff867b8c81825d2f9a6860928479b1a17c3abe1",
"shasum": ""
},
"require": {
"flavioheleno/scale": "^0.2.2",
"php": "^8.2",
"psr/cache": "^3.0",
"psr/clock": "^1.0",
"psr/http-client": "^1.0",
"psr/http-message": "^1.0 | ^2.0",
"teapot/status-code": "^2.1"
},
"require-dev": {
"php-parallel-lint/php-parallel-lint": "^1.3",
"phpstan/phpstan": "^1.10",
"phpunit/phpunit": "^10.2",
"psy/psysh": "^0.11.10",
"roave/security-advisories": "dev-latest",
"squizlabs/php_codesniffer": "^3.7"
},
"default-branch": true,
"type": "library",
"autoload": {
"psr-4": {
"Interrupt\\": "src/"
}
},
"notification-url": "https://packagist.org/downloads/",
"license": [
"MIT"
],
"description": "PSR-18 compliant Circuit Breaker wrapper",
"keywords": [
"circuit breaker",
"error handling",
"fault tolerance",
"microservices"
],
"support": {
"issues": "https://github.com/flavioheleno/interrupt/issues",
"source": "https://github.com/flavioheleno/interrupt/tree/main"
},
"time": "2023-06-20T18:35:35+00:00"
},
{
"name": "flavioheleno/scale",
"version": "0.2.2",
"source": {
"type": "git",
"url": "https://github.com/flavioheleno/scale.git",
"reference": "bd68fd5e2ac595f0bc031162e73fcf9cecbc60c9"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/flavioheleno/scale/zipball/bd68fd5e2ac595f0bc031162e73fcf9cecbc60c9",
"reference": "bd68fd5e2ac595f0bc031162e73fcf9cecbc60c9",
"shasum": ""
},
"require": {
"php": "^8.1"
},
"type": "library",
"autoload": {
"psr-4": {
"Scale\\": "src/"
}
},
"notification-url": "https://packagist.org/downloads/",
"license": [
"MIT"
],
"authors": [
{
"name": "Flavio Heleno",
"email": "flaviohbatista@gmail.com"
}
],
"description": "Typical scale conversion as Interfaces constants for PHP",
"support": {
"issues": "https://github.com/flavioheleno/scale/issues",
"source": "https://github.com/flavioheleno/scale/tree/0.2.2"
},
"time": "2023-03-07T15:37:41+00:00"
},
{
"name": "psr/cache",
"version": "3.0.0",
"source": {
"type": "git",
"url": "https://github.com/php-fig/cache.git",
"reference": "aa5030cfa5405eccfdcb1083ce040c2cb8d253bf"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/php-fig/cache/zipball/aa5030cfa5405eccfdcb1083ce040c2cb8d253bf",
"reference": "aa5030cfa5405eccfdcb1083ce040c2cb8d253bf",
"shasum": ""
},
"require": {
"php": ">=8.0.0"
},
"type": "library",
"extra": {
"branch-alias": {
"dev-master": "1.0.x-dev"
}
},
"autoload": {
"psr-4": {
"Psr\\Cache\\": "src/"
}
},
"notification-url": "https://packagist.org/downloads/",
"license": [
"MIT"
],
"authors": [
{
"name": "PHP-FIG",
"homepage": "https://www.php-fig.org/"
}
],
"description": "Common interface for caching libraries",
"keywords": [
"cache",
"psr",
"psr-6"
],
"support": {
"source": "https://github.com/php-fig/cache/tree/3.0.0"
},
"time": "2021-02-03T23:26:27+00:00"
},
{
"name": "psr/clock",
"version": "1.0.0",
"source": {
"type": "git",
"url": "https://github.com/php-fig/clock.git",
"reference": "e41a24703d4560fd0acb709162f73b8adfc3aa0d"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/php-fig/clock/zipball/e41a24703d4560fd0acb709162f73b8adfc3aa0d",
"reference": "e41a24703d4560fd0acb709162f73b8adfc3aa0d",
"shasum": ""
},
"require": {
"php": "^7.0 || ^8.0"
},
"type": "library",
"autoload": {
"psr-4": {
"Psr\\Clock\\": "src/"
}
},
"notification-url": "https://packagist.org/downloads/",
"license": [
"MIT"
],
"authors": [
{
"name": "PHP-FIG",
"homepage": "https://www.php-fig.org/"
}
],
"description": "Common interface for reading the clock.",
"homepage": "https://github.com/php-fig/clock",
"keywords": [
"clock",
"now",
"psr",
"psr-20",
"time"
],
"support": {
"issues": "https://github.com/php-fig/clock/issues",
"source": "https://github.com/php-fig/clock/tree/1.0.0"
},
"time": "2022-11-25T14:36:26+00:00"
},
{
"name": "psr/http-client",
"version": "1.0.2",
"source": {
"type": "git",
"url": "https://github.com/php-fig/http-client.git",
"reference": "0955afe48220520692d2d09f7ab7e0f93ffd6a31"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/php-fig/http-client/zipball/0955afe48220520692d2d09f7ab7e0f93ffd6a31",
"reference": "0955afe48220520692d2d09f7ab7e0f93ffd6a31",
"shasum": ""
},
"require": {
"php": "^7.0 || ^8.0",
"psr/http-message": "^1.0 || ^2.0"
},
"type": "library",
"extra": {
"branch-alias": {
"dev-master": "1.0.x-dev"
}
},
"autoload": {
"psr-4": {
"Psr\\Http\\Client\\": "src/"
}
},
"notification-url": "https://packagist.org/downloads/",
"license": [
"MIT"
],
"authors": [
{
"name": "PHP-FIG",
"homepage": "https://www.php-fig.org/"
}
],
"description": "Common interface for HTTP clients",
"homepage": "https://github.com/php-fig/http-client",
"keywords": [
"http",
"http-client",
"psr",
"psr-18"
],
"support": {
"source": "https://github.com/php-fig/http-client/tree/1.0.2"
},
"time": "2023-04-10T20:12:12+00:00"
},
{
"name": "psr/http-message",
"version": "2.0",
"source": {
"type": "git",
"url": "https://github.com/php-fig/http-message.git",
"reference": "402d35bcb92c70c026d1a6a9883f06b2ead23d71"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/php-fig/http-message/zipball/402d35bcb92c70c026d1a6a9883f06b2ead23d71",
"reference": "402d35bcb92c70c026d1a6a9883f06b2ead23d71",
"shasum": ""
},
"require": {
"php": "^7.2 || ^8.0"
},
"type": "library",
"extra": {
"branch-alias": {
"dev-master": "2.0.x-dev"
}
},
"autoload": {
"psr-4": {
"Psr\\Http\\Message\\": "src/"
}
},
"notification-url": "https://packagist.org/downloads/",
"license": [
"MIT"
],
"authors": [
{
"name": "PHP-FIG",
"homepage": "https://www.php-fig.org/"
}
],
"description": "Common interface for HTTP messages",
"homepage": "https://github.com/php-fig/http-message",
"keywords": [
"http",
"http-message",
"psr",
"psr-7",
"request",
"response"
],
"support": {
"source": "https://github.com/php-fig/http-message/tree/2.0"
},
"time": "2023-04-04T09:54:51+00:00"
},
{
"name": "teapot/status-code",
"version": "2.1.0",
"source": {
"type": "git",
"url": "https://github.com/teapot-php/status-code.git",
"reference": "1acbf508c63063b63d5c29be6a13c900923f4d2c"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/teapot-php/status-code/zipball/1acbf508c63063b63d5c29be6a13c900923f4d2c",
"reference": "1acbf508c63063b63d5c29be6a13c900923f4d2c",
"shasum": ""
},
"require": {
"php": "~8.0.0 || ~8.1.0 || ~8.2.0"
},
"require-dev": {
"ergebnis/php-cs-fixer-config": "^5.5.2",
"vimeo/psalm": "^5.11.0"
},
"type": "library",
"autoload": {
"psr-4": {
"Teapot\\StatusCode\\": "src"
}
},
"notification-url": "https://packagist.org/downloads/",
"license": [
"MIT"
],
"authors": [
{
"name": "Barney Hanlon",
"email": "barney@shrikeh.net"
},
{
"name": "Andreas Möller",
"email": "am@localheinz.com"
}
],
"description": "PHP HTTP Response Status code library",
"homepage": "https://github.com/teapot-php/status-code",
"keywords": [
"http"
],
"support": {
"issues": "https://github.com/teapot-php/status-code/issues",
"source": "https://github.com/teapot-php/status-code/tree/2.1.0"
},
"time": "2023-05-11T09:40:01+00:00"
}
],
"packages-dev": [],
"aliases": [],
"minimum-stability": "stable",
"stability-flags": {
"flavioheleno/interrupt": 20
},
"prefer-stable": false,
"prefer-lowest": false,
"platform": [],
"platform-dev": [],
"plugin-api-version": "2.3.0"
}
$ tree vendor/
vendor/
├── autoload.php
├── composer
│   ├── autoload_classmap.php
│   ├── autoload_namespaces.php
│   ├── autoload_psr4.php
│   ├── autoload_real.php
│   ├── autoload_static.php
│   ├── ClassLoader.php
│   ├── installed.json
│   ├── installed.php
│   ├── InstalledVersions.php
│   ├── LICENSE
│   └── platform_check.php
├── flavioheleno
│   ├── interrupt
│   │   ├── composer.json
│   │   ├── LICENSE
│   │   ├── Makefile
│   │   ├── README.md
│   │   ├── ruleset.xml
│   │   └── src
│   │   └── Temporary.php <----- from flavioheleno/interim :)
│   └── scale
│   ├── composer.json
│   ├── LICENSE
│   ├── README.md
│   └── src
│   ├── DigitalStorage
│   │   ├── Bytes.php
│   │   ├── Gibibytes.php
│   │   ├── Gigabytes.php
│   │   ├── Kibibytes.php
│   │   ├── Kilobytes.php
│   │   ├── Mebibytes.php
│   │   ├── Megabytes.php
│   │   ├── Pebibytes.php
│   │   ├── Petabytes.php
│   │   ├── Tebibytes.php
│   │   └── Terabytes.php
│   ├── Mass
│   │   ├── Grams.php
│   │   ├── Kilograms.php
│   │   └── Milligrams.php
│   └── Time
│   ├── Days.php
│   ├── Hours.php
│   ├── Milliseconds.php
│   ├── Minutes.php
│   ├── Seconds.php
│   ├── Weeks.php
│   └── Years.php
├── psr
│   ├── cache
│   │   ├── CHANGELOG.md
│   │   ├── composer.json
│   │   ├── LICENSE.txt
│   │   ├── README.md
│   │   └── src
│   │   ├── CacheException.php
│   │   ├── CacheItemInterface.php
│   │   ├── CacheItemPoolInterface.php
│   │   └── InvalidArgumentException.php
│   ├── clock
│   │   ├── CHANGELOG.md
│   │   ├── composer.json
│   │   ├── LICENSE
│   │   ├── README.md
│   │   └── src
│   │   └── ClockInterface.php
│   ├── http-client
│   │   ├── CHANGELOG.md
│   │   ├── composer.json
│   │   ├── LICENSE
│   │   ├── README.md
│   │   └── src
│   │   ├── ClientExceptionInterface.php
│   │   ├── ClientInterface.php
│   │   ├── NetworkExceptionInterface.php
│   │   └── RequestExceptionInterface.php
│   └── http-message
│   ├── CHANGELOG.md
│   ├── composer.json
│   ├── docs
│   │   ├── PSR7-Interfaces.md
│   │   └── PSR7-Usage.md
│   ├── LICENSE
│   ├── README.md
│   └── src
│   ├── MessageInterface.php
│   ├── RequestInterface.php
│   ├── ResponseInterface.php
│   ├── ServerRequestInterface.php
│   ├── StreamInterface.php
│   ├── UploadedFileInterface.php
│   └── UriInterface.php
└── teapot
└── status-code
├── CHANGELOG.md
├── composer.json
├── README.md
└── src
├── All.php
├── Http.php
├── RFC
│   ├── PEP.php
│   ├── RFC2295.php
│   ├── RFC2324.php
│   ├── RFC2326.php
│   ├── RFC2518.php
│   ├── RFC2616.php
│   ├── RFC2774.php
│   ├── RFC2817.php
│   ├── RFC3229.php
│   ├── RFC3648.php
│   ├── RFC4918.php
│   ├── RFC5842.php
│   ├── RFC6585.php
│   ├── RFC7168.php
│   ├── RFC7231.php
│   ├── RFC7232.php
│   ├── RFC7233.php
│   ├── RFC7234.php
│   ├── RFC7235.php
│   ├── RFC7538.php
│   ├── RFC7540.php
│   ├── RFC7725.php
│   ├── Status
│   │   ├── DraftStandard.php
│   │   ├── Experimental.php
│   │   ├── Expired.php
│   │   ├── Informational.php
│   │   └── ProposedStandard.php
│   └── Stream
│   ├── IETF.php
│   ├── Independent.php
│   └── Legacy.php
├── Vendor
│   ├── Apache.php
│   ├── CloudFlare.php
│   ├── Microsoft.php
│   ├── Nginx.php
│   ├── RFC7238.php
│   ├── Symfony.php
│   └── Twitter.php
├── Vendor.php
└── WebDAV.php
27 directories, 120 files
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment