I have tried a lot of things. Socks, foam under, etc...
I cut 2 stripes of 6 inches of this foam. I used a cedar shim to push one on each side between the glass and board, between the brake light and the side. It fit very thightly. Since then i can set the bass at maximum. No more rattle. I am really happy. I think that the board was ratteling against the backglass.