I'd be less worried about fire hazard and more worried about the cardboard rotting. There's a lot of humidity under the hood of a tank; anything that's not waterproof will tend to warp and rot over time. There's lots of glass lids available for that size tank that you could use instead, or a DIY screen top.