{"id":56258,"date":"2024-04-15T21:19:33","date_gmt":"2024-04-15T17:19:33","guid":{"rendered":"https:\/\/packetstormsecurity.com\/files\/178068\/SA-20240411-0.txt"},"modified":"2024-04-15T21:19:33","modified_gmt":"2024-04-15T17:19:33","slug":"amazon-aws-glue-database-password-disclosure","status":"publish","type":"post","link":"https:\/\/afaghhosting.net\/blog\/amazon-aws-glue-database-password-disclosure\/","title":{"rendered":"Amazon AWS Glue Database Password Disclosure"},"content":{"rendered":"<p>SEC Consult Vulnerability Lab Security Advisory &lt; 20240411-0 &gt;<br \/>=======================================================================<br \/>title: Database Passwords in Server Response<br \/>product: Amazon AWS Glue<br \/>vulnerable version: until 2024-02-23<br \/>fixed version: as of 2024-02-23<br \/>CVE number: &#8211;<br \/>impact: medium<br \/>homepage: https:\/\/aws.amazon.com\/glue\/<br \/>found: 2023-05-10<br \/>by: Michael Werner (Eviden)<br \/>SEC Consult Vulnerability Lab<\/p>\n<p>An integrated part of SEC Consult, an Eviden business<br \/>Europe | Asia<\/p>\n<p>https:\/\/www.sec-consult.com<\/p>\n<p>=======================================================================<\/p>\n<p>Vendor description:<br \/>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br \/>&#8220;AWS Glue is a serverless data integration service that makes it easier to<br \/>discover, prepare, move, and integrate data from multiple sources for<br \/>analytics, machine learning (ML), and application development.&#8221;<\/p>\n<p>Source: https:\/\/aws.amazon.com\/glue\/<\/p>\n<p>Business recommendation:<br \/>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<br \/>The vendor has fixed the issue in the currently available version<br \/>on all instances world-wide as of 2024-02-23.<\/p>\n<p>Vulnerability overview\/description:<br \/>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;<br \/>1) Database Passwords in Server Response<br \/>The password of database connections in AWS Glue is loaded into the<br \/>website when a connection&#8217;s edit page is requested. Principals with<br \/>appropriate permissions can read the password. This behavior also<br \/>increases the risk that database passwords will be intercepted by an<br \/>attacker during transmission in the server response. Many types of<br \/>vulnerabilities, such as broken access controls, cross-site scripting<br \/>and weaknesses in session handling, could enable an attacker to<br \/>leverage this behavior to retrieve the passwords.<\/p>\n<p>Proof of concept:<br \/>&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;<br \/>1) Database Passwords in Server Response<br \/>The following steps are necessary to reconstruct the vulnerability:<br \/>1. Login to the AWS Console and switch to the Glue module.<br \/>2. Go to &#8220;Data connections&#8221; and create a new connection.<br \/>3. Choose a connection type that allows username \/ password<br \/>authentication (e.g. JDBC).<br \/>&lt;image ref: aws_glue_connection_config.webp&gt;<br \/>4. Open the new connection&#8217;s &#8220;Edit&#8221; page and inspect the password<br \/>field e.g. with the browser&#8217;s DevTools.<br \/>&lt;image ref: aws_glue_poc.webp&gt;<\/p>\n<p>The following permissions were used:<br \/>* glue:GetConnections (for the list view of connections; not necessary<br \/>to open the connection page itself if the connection name is known)<br \/>* glue:GetConnection (for opening the connection page)<br \/>* ec2:DescribeSubnets (for opening the edit page of a connection)<\/p>\n<p>Permission Summary:<br \/>A principal only needs the permissions glue:GetConnection and ec2:DescribeSubnets<br \/>to retrieve the database password of a connection. The attacker also<br \/>needs either knowledge of the connection&#8217;s name to open the edit page<br \/>directly (e.g. https:\/\/us-east-1.console.aws.amazon.com\/gluestudio\/home?region=us-east-1#\/connection\/edit-connection\/Security%20Advisory\/)<br \/>or the permission glue:GetConnections to list existing connections.<\/p>\n<p>Vulnerable \/ tested versions:<br \/>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;<br \/>The version that was current at 2023-05-10 has been tested and found to be<br \/>vulnerable.<\/p>\n<p>Vendor contact timeline:<br \/>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<br \/>2023-06-07: Contacting vendor through aws-security@amazon.com<br \/>2023-06-07: Vendor response, provides PGP key, sending encrypted<br \/>security advisory.<br \/>2023-06-08: Vendor response, team is investigating the report, asking<br \/>about public disclosure timeline.<br \/>2023-06-16: Vendor is still working on the report, will inform us on a<br \/>weekly basis.<br \/>2023-07-24: Vendor requires additional time, next update will be early<br \/>September, provides weekly updates.<br \/>2023-09-14: Vendor team is working on rolling out a fix.<br \/>2023-09-21: Vendor encountered roll-out issues, full mass deployment now<br \/>scheduled to be finished in 2023Q4.<br \/>2023-10-05: Vendor hit &#8220;first milestone&#8221; in their development, 3-staged<br \/>approach.<br \/>2023-10-25: Vendor hit second milestone before full rollout.<br \/>2024-02-14: Asking for a status update.<br \/>2024-02-15: Vendor is still working on the issue.<br \/>Asking them for a timeline.<br \/>2024-02-23: Vendor reports that fix is implemented and deployed worldwide.<br \/>Coordinating public release.<br \/>2024-02-28: Sending details where we publish the advisory, asking for a<br \/>CVE number.<br \/>2024-03-01: Vendor asks whether we meant CVE or CVSS.<br \/>2024-04-08: Clarifying that we mean CVE, but CVE not needed for cloud.<br \/>Setting release date to 11th April.<br \/>2024-04-11: Coordinated release of security advisory.<\/p>\n<p>Solution:<br \/>&#8212;&#8212;&#8212;<br \/>The vendor has fixed the issue and deployed the patch worldwide as of<br \/>as of 2024-02-23.<\/p>\n<p>Workaround:<br \/>&#8212;&#8212;&#8212;&#8211;<br \/>None<\/p>\n<p>Advisory URL:<br \/>&#8212;&#8212;&#8212;&#8212;-<br \/>https:\/\/sec-consult.com\/vulnerability-lab\/<\/p>\n<p>~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~<\/p>\n<p>SEC Consult Vulnerability Lab<br \/>An integrated part of SEC Consult, an Eviden business<br \/>Europe | Asia<\/p>\n<p>About SEC Consult Vulnerability Lab<br \/>The SEC Consult Vulnerability Lab is an integrated part of SEC Consult, an<br \/>Eviden business. It ensures the continued knowledge gain of SEC Consult in the<br \/>field of network and application security to stay ahead of the attacker. The<br \/>SEC Consult Vulnerability Lab supports high-quality penetration testing and<br \/>the evaluation of new offensive and defensive technologies for our customers.<br \/>Hence our customers obtain the most current information about vulnerabilities<br \/>and valid recommendation about the risk profile of new technologies.<\/p>\n<p>~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~<br \/>Interested to work with the experts of SEC Consult?<br \/>Send us your application https:\/\/sec-consult.com\/career\/<\/p>\n<p>Interested in improving your cyber security with the experts of SEC Consult?<br \/>Contact our local offices https:\/\/sec-consult.com\/contact\/<br \/>~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~<\/p>\n<p>Mail: security-research at sec-consult dot com<br \/>Web: https:\/\/www.sec-consult.com<br \/>Blog: https:\/\/blog.sec-consult.com<br \/>Twitter: https:\/\/twitter.com\/sec_consult<\/p>\n<p>EOF Michael Werner \/ @2024<\/p>\n","protected":false},"excerpt":{"rendered":"<p>SEC Consult Vulnerability Lab Security Advisory &lt; 20240411-0 &gt;=======================================================================title: Database Passwords in Server Responseproduct: Amazon AWS Gluevulnerable version: until 2024-02-23fixed version: as of 2024-02-23CVE number: &#8211;impact: mediumhomepage: https:\/\/aws.amazon.com\/glue\/found: 2023-05-10by: Michael Werner (Eviden)SEC Consult Vulnerability Lab An integrated part of SEC Consult, an Eviden businessEurope | Asia https:\/\/www.sec-consult.com ======================================================================= Vendor description:&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-&#8220;AWS Glue is a serverless data &hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[26],"tags":[],"class_list":["post-56258","post","type-post","status-publish","format-standard","hentry","category-vulnerability"],"_links":{"self":[{"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/posts\/56258","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/comments?post=56258"}],"version-history":[{"count":0,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/posts\/56258\/revisions"}],"wp:attachment":[{"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/media?parent=56258"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/categories?post=56258"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/tags?post=56258"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}