The "ugly red wooden box" sounds correct, but the "wooden red ugly box" sounds wrong. There is a "rule" describing the order of English adjectives
Opinion or judgment -- beautiful, ugly, easy, fast, interesting
Size -- small, tall, short, big
Age -- young, old, new, historic, ancient
Shape -- round, square, rectangular
Color -- red, black, green, purple
Nationality -- French, Asian, American, Canadian, Japanese
Material -- wooden, metallic, plastic, glass, paper
Purpose or Qualifier -- foldout sofa, fishing boat, racing car
Example>>>> The beautiful long curved old red Italian steel racing car