How to quote a quote?
Unless it is the fact that paper A quotes paper B that you intend to highlight in your thesis and not the content of the quote from paper B itself, you need to read paper B. If you reproduce the quote by itself, you should cite the original. If you need to refer to paper A's reference to B, then you need to cite both.