7.1
CWE
200
Advisory Published
Advisory Published
Updated

CVE-2023-34093: Infoleak

First published: Tue Jul 25 2023(Updated: )

### Summary Anyone (Strapi developers, users, plugins) can make every attribute of a Content-Type public without knowing it. ### Details When dealing with content-types inside a Strapi instance, we can extend those using the appropriate container: ```javascript strapi.container.get('content-types').extend(contentTypeUID, (contentType) => newContentType); ``` The vulnerability only affects the handling of content types by Strapi, not the actual content types themselves. Users can use plugins or modify their own content types without realizing that the `privateAttributes` getter is being removed, which can result in any attribute becoming public. This can lead to sensitive information being exposed or the entire system being taken control of by an attacker(having access to password hashes). ### PoC Extend any content type on runtime (like in the bootstrap functions) and do a copy of the content-type object. ```javascript strapi.container.get('content-types').extend(contentTypeUID, (contentType) => { const newCT = { ... contentType, attributes: { ...contentType.attributes, newAttr: {} } }; return newCT; }); ``` This will have as effect to remove the getter and as we rely on it in sanitization, every attributes will be considered as public. ### Impact Everyone can be impacted. Depending on how people are using/extending content-types. If the users are mutating the content-type, they will not be affected.

Credit: security-advisories@github.com security-advisories@github.com security-advisories@github.com

Affected SoftwareAffected VersionHow to fix
npm/@strapi/database<4.10.8
4.10.8
npm/@strapi/utils<4.10.8
4.10.8
npm/@strapi/strapi<4.10.8
4.10.8
Strapi Strapi<4.10.8

Never miss a vulnerability like this again

Sign up to SecAlerts for real-time vulnerability data matched to your software, aggregated from hundreds of sources.

Frequently Asked Questions

  • What is CVE-2023-34093?

    CVE-2023-34093 is a vulnerability in Strapi, an open-source headless content management system, that allows anyone to make every attribute of a Content-Type public without knowing it.

  • What is the severity of CVE-2023-34093?

    CVE-2023-34093 has a severity value of 7.1 (High).

  • Which software versions are affected by CVE-2023-34093?

    CVE-2023-34093 affects Strapi versions up to but not including 4.10.8.

  • How can I fix CVE-2023-34093?

    To fix CVE-2023-34093, upgrade to Strapi version 4.10.8 or later.

  • Where can I find more information about CVE-2023-34093?

    More information about CVE-2023-34093 can be found in the following references: [GitHub Advisory](https://github.com/strapi/strapi/security/advisories/GHSA-chmr-rg2f-9jmf), [NVD](https://nvd.nist.gov/vuln/detail/CVE-2023-34093), [GitHub Commit](https://github.com/strapi/strapi/commit/2fa8f30371bfd1db44c15e5747860ee5789096de).

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2024 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203