CVE-2022-31158: Packbackbooks/lti 1 3 php library LTI 1.3 Tool Library's Nonce Vulnerability

HIGH
Advisory Identifier: GHSA-5p73-qg2v-383h
CVSS 7.5
CWE-294 CWE-327
Published
Advisory Summary

CVE-2022-31158 is a HIGH (CVSS 7.5) lti 1.3 tool library's nonce vulnerability (CWE-294: Authentication Bypass by Capture-replay) affecting Packbackbooks/lti 1 3 php library libraries in the Packagist ecosystem. The issue involves lti 1.3 tool library's nonce claim value not validated against nonce value sent in authentication request before v5.0. Remediation is available by upgrading affected packages to version 5.0.

CVE-2022-31158 at a Glance

CVE Identifier CVE-2022-31158
GHSA Identifier GHSA-5p73-qg2v-383h
Severity HIGH
CVSS v3.1 Base Score 7.5
CWE Classification CWE-294: Authentication Bypass by Capture-replay
Affected Product Packbackbooks/lti 1 3 php library
Package Ecosystem Packagist
Published Date
Last Updated

Security Impact

CVSS: 7.5

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N).

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required None (PR:N)
User Interaction None (UI:N)
Scope Unchanged (S:U)
Confidentiality None (C:N)
Integrity High (I:H)
Availability None (A:N)

How to Fix CVE-2022-31158

To remediate this vulnerability, upgrade all affected Packbackbooks/lti 1 3 php library dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

packbackbooks/lti-1-3-php-library fixed: 5.0
Upgrade packbackbooks/lti-1-3-php-library to 5.0
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

inspect dependencies for packbackbooks/lti-1-3-php-library

How to Check if You Are Affected

To determine whether your application is affected by CVE-2022-31158, inspect your project dependencies for Packbackbooks/lti 1 3 php library:

inspect dependencies for packbackbooks/lti-1-3-php-library

Analyze the terminal output to locate any version of Packbackbooks/lti 1 3 php library in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 5.0), your application is affected.

Note: Verify declared build manifests and deployed runtime container environments.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-294: Authentication Bypass by Capture-replay, where a capture-replay flaw exists when the design of the product makes it possible for a malicious user to sniff network traffic and bypass authentication by replaying it to the server in question to the same effect as the original message (or with minor changes). In Packbackbooks/lti 1 3 php library, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

### Impact Nonce Claim Value was not being validated against the nonce value sent in the Authentication Request. ### Patches Users should upgrade to version 5.0 immediately ### Workarounds None.

CVE-2022-31158 Affected Packbackbooks/lti 1 3 php library Versions

1 component(s)
Fixed Versions:
5.0
Product / Package Ecosystem Affected Versions Fixed Version
packbackbooks/lti-1-3-php-library
Packagist
< 5.0
5.0

References

Frequently Asked Questions

What is CVE-2022-31158?
CVE-2022-31158 is a security vulnerability in Packbackbooks/lti 1 3 php library involving LTI 1.3 Tool Library's Nonce Claim Value not validated against nonce value sent in Authentication Request before v5.0 under CWE-294: Authentication Bypass by Capture-replay.
Which Packbackbooks/lti 1 3 php library versions are affected?
Affected versions include releases prior to 5.0 across affected packages: packbackbooks/lti-1-3-php-library.
What version fixes CVE-2022-31158?
Upgrading to 5.0 (or the latest patched release for your respective branch) resolves the vulnerability.
Is packbackbooks/lti-1-3-php-library affected?
Yes, packbackbooks/lti-1-3-php-library is affected in releases prior to 5.0. Upgrade your dependency to 5.0 or later.
What is the CVSS score of CVE-2022-31158?
CVE-2022-31158 has a CVSS v3.1 base score of 7.5 (HIGH) with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N.
What CWE is associated with CVE-2022-31158?
CVE-2022-31158 is classified under CWE-294: Authentication Bypass by Capture-replay (A capture-replay flaw exists when the design of the product makes it possible for a malicious user to sniff network traffic and bypass authentication by replaying it to the server in question to the same effect as the original message (or with minor changes).).
How can I check Packagist dependencies for CVE-2022-31158?
Run the dependency tree command: 'inspect dependencies for packbackbooks/lti-1-3-php-library'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-5p73-qg2v-383h",
  "modified" : "2022-07-19T18:26:48Z",
  "published" : "2022-07-15T20:55:50Z",
  "aliases" : [ "CVE-2022-31158" ],
  "summary" : "LTI 1.3 Tool Library's Nonce Claim Value not validated against nonce value sent in Authentication Request before v5.0",
  "details" : "### Impact\n\nNonce Claim Value was not being validated against the nonce value sent in the Authentication Request.\n\n### Patches\n\nUsers should upgrade to version 5.0 immediately\n\n### Workarounds\n\nNone.\n\n",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Packagist",
      "name" : "packbackbooks/lti-1-3-php-library"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "5.0"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/packbackbooks/lti-1-3-php-library/security/advisories/GHSA-5p73-qg2v-383h"
  }, {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2022-31158"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/packbackbooks/lti-1-3-php-library"
  }, {
    "type" : "WEB",
    "url" : "https://openid.net/specs/openid-connect-core-1_0.html#AuthRequest"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-294", "CWE-327" ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2022-07-15T20:55:50Z",
    "nvd_published_at" : "2022-07-15T18:15:00Z"
  }
}