CWE
89
Advisory Published
Updated

REDHAT-BUG-1322050: SQL Injection

First published: Tue Mar 29 2016(Updated: )

Description of problem: The foreman &amp; Katello projects received an upstream notification about the discovery of an authenticated sql injection vulnerability within katello: Dear Katello/Foreman Team, During an internal test it was discovered that the scoped search parameters sort_by and sort_order are vulnerable to an authenticated SQL injection. If we access: <a href="https://x.x.x.x/katello/api/v2/organizations/1/sync_plans/1/products?available_for=sync_plan&amp;full_result=true&amp;page=1&amp;search=&amp;sort_by=name&amp;sort_order=ASC">https://x.x.x.x/katello/api/v2/organizations/1/sync_plans/1/products?available_for=sync_plan&amp;full_result=true&amp;page=1&amp;search=&amp;sort_by=name&amp;sort_order=ASC</a>' we will see the following error: {"displayMessage":"PG::Error: ERROR: unterminated quoted string at or near \"', katello_products.id &lt;<a href="http://katello_products.id">http://katello_products.id</a>&gt; DESC\"\nLINE 1: ...n_id IS NULL)) ORDER BY katello_products.name &lt;<a href="http://katello_products.name">http://katello_products.name</a>&gt; ASC', katello...\n ^\n: SELECT \"katello_products\".* FROM \"katello_products\" WHERE \"katello_products\".\"id\" IN (SELECT DISTINCT \"katello_products\".\"id\" FROM \"katello_products\" WHERE \"katello_products\".\"organization_id\" = 1 AND (katello_products.id &lt;<a href="http://katello_products.id">http://katello_products.id</a>&gt; in (NULL) or katello_products.id &lt;<a href="http://katello_products.id">http://katello_products.id</a>&gt; in (6,5,4,2,3,1)) AND (sync_plan_id != '1' OR sync_plan_id IS NULL)) ORDER BY katello_products.name &lt;<a href="http://katello_products.name">http://katello_products.name</a>&gt; ASC', katello_products.id &lt;<a href="http://katello_products.id">http://katello_products.id</a>&gt; DESC","errors":["PG::Error: ERROR: unterminated quoted string at or near \"', katello_products.id &lt;<a href="http://katello_products.id">http://katello_products.id</a>&gt; DESC\"\nLINE 1: ...n_id IS NULL)) ORDER BY katello_products.name &lt;<a href="http://katello_products.name">http://katello_products.name</a>&gt; ASC', katello...\n The injection can be exploited as a blind time based injection. Best Regards Oliver External reference: The line of code in question here is: <a href="https://github.com/Katello/katello/blob/KATELLO-3.0/app/controllers/katello/api/v2/api_controller.rb#L67">https://github.com/Katello/katello/blob/KATELLO-3.0/app/controllers/katello/api/v2/api_controller.rb#L67</a>

Affected SoftwareAffected VersionHow to fix
Katello

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 the severity of REDHAT-BUG-1322050?

    The severity of REDHAT-BUG-1322050 is classified as high due to the potential for authenticated SQL injection.

  • How do I fix REDHAT-BUG-1322050?

    To mitigate REDHAT-BUG-1322050, you should update Katello to the latest patched version that addresses this vulnerability.

  • What software is affected by REDHAT-BUG-1322050?

    REDHAT-BUG-1322050 affects the Katello project, specifically the versions that utilize scoped search parameters.

  • How can I check if my system is vulnerable to REDHAT-BUG-1322050?

    You can check for vulnerable systems by reviewing the version of Katello currently deployed and confirming it is not affected by the SQL injection flaw.

  • What are the implications of REDHAT-BUG-1322050?

    The implications of REDHAT-BUG-1322050 include unauthorized access to sensitive data through SQL injection, which can lead to data breaches.

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.
© 2025 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203