Is it a bug? How to prevent that window?

Created on 19 November 2022, over 2 years ago
Updated 20 November 2023, over 1 year ago

One one of our new Drupal 9.4.8 customer projects, we've spotted some malicious party tried to exploit CVE-2018-7600 as described on https://github.com/nixawk/labs/issues/19. Interestingly, when logged out and trying the same path that the website's log caught, namely https://domain.tld/user/register?_wrapper_format=drupal_ajax&ajax_form=1... then a small window like on this screenshot appears:

Expanding that small window shows this content:

[{"command":"add_css","data":"\u003Clink rel=\u0022stylesheet\u0022 media=\u0022all\u0022 href=\u0022\/core\/themes\/bartik\/css\/components\/messages.css?rlksqm\u0022 \/\u003E\n"},{"command":"insert","method":"prepend","selector":null,"data":"\u003Cdiv data-drupal-messages\u003E\n            \n      \u003Cdiv class=\u0022messages__wrapper layout-container\u0022\u003E\n                            \u003Cdiv role=\u0022contentinfo\u0022 aria-label=\u0022Error message\u0022 class=\u0022messages messages--error\u0022\u003E\n                        \u003Cdiv role=\u0022alert\u0022\u003E\n                                            \u003Ch2 class=\u0022visually-hidden\u0022\u003EError message\u003C\/h2\u003E\n                                            An unrecoverable error occurred. The uploaded file likely exceeded the maximum file size (2 MB) that this server supports.\n                                        \u003C\/div\u003E\n                      \u003C\/div\u003E\n                                  \u003C\/div\u003E\n      \u003C\/div\u003E\n","settings":null}]

Now, searching [{"command":"add_css","data":"\u003Clink rel=\u0022stylesheet\u0022 shows all these Drupal websites have the same issue:

https://www.healthit.gov/hit_confirm_survey
https://www.nlrb.gov/sort-announcements/created+asc/release-date/1
https://www.oit.edu/send-email-layout/25486
https://opwdd.ny.gov/get-started/information-sessions?_wrapper_format=dr...
https://www.hammer9.com/hammer9/ajax/recaptcha?form_selector=%5Bdata-dru...
https://labor.mo.gov/ultimenu/ajax?mlid=menu_link_content%3A36bcb5db-8bb...
https://www.unicef.org/globalinsight/ajax/unicef-component-mosaic/load-m...
https://www.quantumrun.com/list/login
https://www.relatedcalifornia.com/related_property_explorer/29846?proper...
https://eboletin.sunat.gob.pe/rate/undo/node/53/thumbs_up?destination=/n...
https://www.hcpl.net/authlogin/nojs?options%5Breserve_id%5D=b7c62f7a-b3d...
https://www.alliedtelesis.com/pe/fr/custom/views/ajax/product_page_asset...
https://www.iomctoolbox.org/ajax/process/next-step/50667/50035
https://www.cafeappliances.ca/appliances/CVW93013MDS/where-to-buy
https://www.mercuryconvention.org/es/document-download/modal/2215
https://www.martin.fl.us/martin-co/ajax/load-alphabet-services/v

etc. Is it a common problem for Drupal 9 websites? Any ideas on how this should be prevented?

πŸ’¬ Support request
Status

Closed: outdated

Version

9.5

Component
OtherΒ  β†’

Last updated about 11 hours ago

Created by

πŸ‡ΊπŸ‡ΈUnited States altagrade

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • Please observe the browser console log when this occurs and report back.

  • Status changed to Active about 2 years ago
  • πŸ‡ΊπŸ‡ΈUnited States altagrade

    @cilefen, please open any of the above links to see the issue. The browser console shows the

    404
    Not Found

    for favicon.ico file.

  • SA-CORE-2018-003 was entirely inside CKEditor. What is the markup around that window?

  • πŸ‡ΊπŸ‡ΈUnited States altagrade

    Again, please open any of the links listed above.

  • πŸ‡§πŸ‡ͺBelgium RandalV

    @AltaGrade,

    The page you're seeing is an ajax response, if you visit any controller that returns an AjaxResponse object, I expect this is exactly what you'd encounter (as is the case for the links you've sent).
    The goal of this response is to add a 'status message' with a given error/notice/.. notification.

    Why you're seeing that window instead of the ajax response "doing its thing" is unclear, the error message in that response however states:
    An unrecoverable error occurred. The uploaded file likely exceeded the maximum file size (2 MB) that this server supports.\n

    Is javascript turned off in your browser? That might be one explanation as to why you would see this page instead of the HTML content being prepended.

    Or perhaps because there's no selector to prepend the HTML content to:
    "selector":null

  • Again, please open any of the links listed above.

    I’m sorry if this sounds odd but I don’t visit or log into sites if suggested in this issue queue for security reasons.

  • Status changed to Postponed: needs info almost 2 years ago
  • Status changed to Closed: outdated over 1 year ago
  • I am closing this issue due to inactivity. Reopen it as necessary.

Production build 0.71.5 2024