Could ibuprofen cause kidney of liver pain?

Possibly. Although they would be very rare side effects, Ibuprofen can cause liver problems including hepatitis and jaundice and kidney problems including kidney damage and kidney failure. I strongly recommend that you see a healthcare provider if you think you might have some of these side effects.