XF 1.5 Embedded Base64 Images Causing Some Problems

DeltaHF

Well-known member
For some reason, several of my users have been trying to directly embed Base-64 encoded images into their posts. The XF image proxy attempts to process them, but it fails, breaking many other resources on the thread page including smilies, avatars, even stylesheets (they show an ERR_CONNECTION_RESET in the Chrome dev console).

When I've tried this in the test forum here, the image proxy appears to fail gracefully and display the software's regular broken image placeholder.

Why does my site behave differently? I'm using XF 1.5.6, PHP-FPM 5.6.18, Nginx 1.9.11, with PHP GD set as the default image processor.
 
It's very difficult to say. That's an invalid URL, so there shouldn't be any work/fetching going on in the proxy. Can you show a demo in your situation?
 
OK, so I just did another test on my site with a shorter base64 embed (the same one I used in the test forum here), and it failed gracefully...

Could there be some type of bug which causes the image proxy to fail if the encoded string is too long? I have a high character limit for my posts, so it will accept very long encoded strings for the image in the post's text.
 
This is actually happening independent of XF. You can trigger it by just sending a long URL to Nginx. For example:

Code:
https://www.gtplanet.net/?x=2F4AAQSkZJRgAQIDBAUGBwj%2FxABIEAABAgQDBQYDBAYIBAcAAAABAhEAAyExBBJBBSJRYXEGE4GRocEysfBCUtHxBxQjYnLhFTNTgpKiwtIWQ1STc4Oys8PT4v%2FEABkBAAMBAQEAAAAAAAAAAAAAAAABAgMEBf%2FEACMRAAICAQQCAwEBAAAAAAAAAAABAhEhAxIxQRNRFDJhBCL%2F2gAMAwEAAhEDEQA%2FAOfJAPF%2BVXh1YJFmNmr7wpU4KbKlANywcuK6igaGxNDNY9IYE7BTghyXzGib2uaDiSL8Itc%2B6bAmtW5v9corkArEtwCXUwoN1kpcU0YqPQm5hnaGMskPUB3udOHvE1YC9mTClZzEgajnp8jFwhIctUKTTq5fy5xRYBQY0L6Ma8%2BfCLVeNShQSXYh3Z6F2cfXOCSAloUcqgCXA6OBy0pxiBMxIBSVOpvvXBPHi4dxAw6gC6FEiht4ac38hEvHSgUlRrZ6VLNUcK8oQ0Q9qAshaQH3hQg62fjU%2BZgYUkMLnzp9UhG0VlEpCQ%2BVy9NR8LtahFORhElSixT0I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JG7AgQAMPAgQIAP%2F2Q%3D%3D&hash=7859731d356ad0dd88b0e41d29b7479b

Is there an error in your Nginx logs about this? It could be a specific issue with your setup/Nginx configuration. Are you doing any extra proxying for example?
 
Ah, very interesting, great catch. I see that reports ERR_CONNECTION_CLOSED other than ERR_CONNECTION_RESET, though I'm not sure what the difference is.

I don't see anything in my Nginx error logs, but I agree it's something to do with its config. I'm using @eva2000's Centminmod, and sure enough, it returns the same error if you try to load that URL on his domain:

Code:
https://community.centminmod.com/?x=2F4AAQSkZJRgAQIDBAUGBwj%2FxABIEAABAgQDBQYDBAYIBAcAAAABAhEAAyExBBJBBSJRYXEGE4GRocEysfBCUtHxBxQjYnLhFTNTgpKiwtIWQ1STc4Oys8PT4v%2FEABkBAAMBAQEAAAAAAAAAAAAAAAABAgMEBf%2FEACMRAAICAQQCAwEBAAAAAAAAAAABAhEhAxIxQRNRFDJhBCL%2F2gAMAwEAAhEDEQA%2FAOfJAPF%2BVXh1YJFmNmr7wpU4KbKlANywcuK6igaGxNDNY9IYE7BTghyXzGib2uaDiSL8Itc%2B6bAmtW5v9corkArEtwCXUwoN1kpcU0YqPQm5hnaGMskPUB3udOHvE1YC9mTClZzEgajnp8jFwhIctUKTTq5fy5xRYBQY0L6Ma8%2BfCLVeNShQSXYh3Z6F2cfXOCSAloUcqgCXA6OBy0pxiBMxIBSVOpvvXBPHi4dxAw6gC6FEiht4ac38hEvHSgUlRrZ6VLNUcK8oQ0Q9qAshaQH3hQg62fjU%2BZgYUkMLnzp9UhG0VlEpCQ%2BVy9NR8LtahFORhElSixT0IPlfTWGuBUSJyCHa%2FwCNm42PrDmCxBsWaoL0AHThd%2FCCnJdPMVLatVurfKGNlsSWci78wa3Dsw1hcgiwn4bMaF7mo%2BQrS8UiypK1JYWbq%2FG1W1%2FCL2VMBL0eibA1FRVubHxeIOIClELVarvTeBIJYhwCTTViIUWNEFCloJAS7HLWoH7tKF7%2FAEYssNiAtOWYnNWw4jys8QVmjkkMoEivn1Zh48o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HVYHvDs6WFJUlcyUUqDEGYliCGIvrFYnsxhB%2FwAkHqVH3h1GwML%2FANPL8n%2BcG0HI5N2h2MrBTynMFyzVC0qBBT90kWWNfPWNV2a7WJEsInKWALLQopPi3v4EWjZf0Jhv%2Bmk%2F4EH5wqXsrDpth5A6S0fNobVkRTTwZjDz5MyZkklgo781VWBqS5uo6DjyeNakyGCUzCwYBgKAaX4Q4hCQN1KQ3AAQoqhbS7EZJR%2B3NPl%2FugDDSjos%2BIhSlwM0PaFhjDS%2Fur8x%2BECE5%2Fr6MHBtQWzODsfJFyfOHP8AhHDa%2B34RdGV9MIBSfr8oZG0qE9lMKNIWezWFH2Ys2PD%2FADQAknT684A2lWnszhL90k%2BEOo2DhB%2FyU%2BUWCZfIQaU8oB0iENk4YWko9IWNnyNJKD4CJdOEE%2FIQUwI36kgWkyx5fhC5eHT%2FAGSB5Q855QM0KgDQP3Uj65Q4JjaQ3nMFWCgH%2B%2BMF3p4xHg8sOgHlTTxhOfnCMn00GBDoBeeCCoTlgZIKAV3kDN9PBZOsEEwUAeblAeDyQMsFAEFQnNDmWBl6wwEwC8OJD8YATwEADbwKw4BB5W%2FOCgGoMCF5YDdIAENBZYcAeAYAGSmBDwQYEKh2IMEq3j7wIEIQR94MQIEMYl6nrBn2MCBAICoLQeHtAgQwCJhUv2HtAgQAKUPrzhK7QIEIYuEkwIEMQZFYcN4KBAAQP15wDAgQDEJMB%2FnAgQmMS8L%2BvWDgQCFJgl%2FXlBQIAD%2FCHkiBAgANIvC0oHAQIEIQrKKUFjC8opQQIEACJiRw%2BmENJG7AgQAMPAgQIAP%2F2Q%3D%3D&hash=7859731d356ad0dd88b0e41d29b7479b
@eva2000 I was also able to break a Centminmod forum page by pasting one of the embedded images into an old post of mine. Any ideas as to what might be going on?
 
@DeltaHF, try playing with your large_client_header_buffers.
http://nginx.org/en/docs/http/ngx_http_core_module.html#large_client_header_buffers
I think what you are getting is a 400 error in your log
This is a sample from mine when I try that URL on it
Code:
64.188.254.247 - - [18/Mar/2016:18:26:12 -0500] "-" 400 0 "-" "-"

The second part may be due to your client_max_body_size and possibly client_body_buffer_size.

These settings are found in /usr/local/nginx/nginx.conf.

It may also be the client_header_buffer_size
 
Last edited:
@eva2000 I was also able to break a Centminmod forum page by pasting one of the embedded images into an old post of mine. Any ideas as to what might be going on?
problem for my forums at least is the default nginx HTTP/2 max field and header size limits have been hit. Strange if Xenforo.com forum's using Nginx with HTTP/2 then maybe they have raised that limit ?

error.log with info verbosity
Code:
grep -v 'ngx_pagespeed' error.log | tail -20
Code:
2016/03/20 06:20:19 [info] 6155#6155: *3 client timed out (110: Connection timed out) while waiting for request, IP, server: 0.0.0.0:443
2016/03/20 06:20:21 [info] 6156#6156: *16 client exceeded http2_max_field_size limit while processing HTTP/2 connection, client: IP, server: 0.0.0.0:443
2016/03/20 06:20:22 [info] 6155#6155: *20 client exceeded http2_max_field_size limit while processing HTTP/2 connection, client: IP, server: 0.0.0.0:443
2016/03/20 06:20:24 [info] 6155#6155: *15 client timed out (110: Connection timed out) while SSL handshaking, client: IP, server: 0.0.0.0:443
2016/03/20 06:20:45 [info] 6157#6157: *42 client closed connection while SSL handshaking, client: IP, server: 0.0.0.0:443
2016/03/20 06:20:46 [info] 6155#6155: *43 client IP closed keepalive connection
2016/03/20 06:26:30 [info] 9020#9020: *11 client exceeded http2_max_header_size limit while processing HTTP/2 connection, client: IP, server: 0.0.0.0:443
2016/03/20 06:26:31 [info] 9020#9020: *40 client exceeded http2_max_header_size limit while processing HTTP/2 connection, client: IP, server: 0.0.0.0:443
2016/03/20 06:26:38 [info] 9019#9019: *46 client exceeded http2_max_header_size limit while processing HTTP/2 connection, client: IP, server: 0.0.0.0:443

defaults for http2_max_field_size and http2_max_header_size limits are 4k and 16k respectively. For my forums probably due to the additionally added headers i.e. HTTP Public Key Pinning and security headers, that might have pushed the base64 encoded external proxy image requests over the limits. Fails nicely now on my forums with these settings in my HTTP/2 nginx vhost config file
Code:
# http/2 settings http://nginx.org/en/docs/http/ngx_http_v2_module.html#http2_max_field_size
http2_max_field_size 16k;
http2_max_header_size 32k;
 
Back
Top Bottom