[Security-news] GraphQL - Moderately critical - Access bypass - SA-CONTRIB-2021-029

security-news at drupal.org security-news at drupal.org
Wed Sep 15 17:19:55 UTC 2021


View online: https://www.drupal.org/sa-contrib-2021-029

Project: GraphQL [1]
Date: 2021-September-15
Security risk: *Moderately critical* 13∕25
AC:Basic/A:User/CI:Some/II:Some/E:Theoretical/TD:Default [2]
Vulnerability: Access bypass

CVE IDs: CVE-2020-13675
Description: 
This advisory addresses a similar issue to Drupal core - Moderately critical
- Access bypass - SA-CORE-2021-008 [3].

The GraphQL module allows file uploads through its HTTP API. The module does
not correctly run all file validation, which causes an access bypass
vulnerability. An attacker might be able to upload files that bypass the file
validation process implemented by modules on the site.

This vulnerability is mitigated by four factors:

   1) The GraphQL module must be enabled on the site.
   2) The GraphQL schema must expose a file upload by using the helper
      "src/GraphQL/Utility/FileUpload.php" in the module.
   3) An attacker must have access to that file upload via the GraphQL API.
   4) The site must employ a file validation module.

Solution: 
Install the latest version:

   * If you use the GraphQL module 8.x-4.x for Drupal 8.x or 9.x, upgrade to
     GraphQL 8.x-4.2 [4]
   * If you use the GraphQL module 8.x-3.x for Drupal 8.x no action is needed
     as a result of this advisory as the 8.x-3.x branch is not affected by 
this
     issue.

Reported By: 
   * Klaus Purer [5]

Fixed By: 
   * Klaus Purer [6]
   * Jess  [7] of the Drupal Security Team
   * pmelab [8]
   * Drew Webber [9] of the Drupal Security Team
   * Lee Rowlands [10] of the Drupal Security Team
   * Alex Pott [11] of the Drupal Security Team
   * Samuel Mortenson [12]
   * Kim Pepper [13]

Coordinated By: 
   * xjm [14] of the Drupal Security Team
   * Drew Webber [15] of the Drupal Security Team


[1] https://www.drupal.org/project/graphql
[2] https://www.drupal.org/security-team/risk-levels
[3] https://www.drupal.org/sa-core-2021-008
[4] https://www.drupal.org/project/graphql/releases/8.x-4.2
[5] https://www.drupal.org/user/262198
[6] https://www.drupal.org/user/262198
[7] https://www.drupal.org/user/65776
[8] https://www.drupal.org/user/555322
[9] https://www.drupal.org/user/255969
[10] https://www.drupal.org/user/395439
[11] https://www.drupal.org/user/157725
[12] https://www.drupal.org/user/2582268
[13] https://www.drupal.org/user/370574
[14] https://www.drupal.org/u/xjm
[15] https://www.drupal.org/u/mcdruid



More information about the Security-news mailing list