프로그래밍/Weekly I Learned

2023.11.17+ broken acess control 리액트 해결

타코코딩 2023. 11. 17. 15:32

https://owasp.org/www-project-top-ten/

 

OWASP Top Ten | OWASP Foundation

The OWASP Top 10 is the reference standard for the most critical web application security risks. Adopting the OWASP Top 10 is perhaps the most effective first step towards changing your software development culture focused on producing secure code.

owasp.org

    <Container>
      {getUser() ? (   <CartContainer>
        <Title><BsCart4/><span>장바구니</span></Title>
        <table style={{marginTop:"10px"}}striped bordered hover >
          <thead style={{borderTop:"1px solid black",borderBottom:"1px solid black"}}>
            <tr>
              <th style={{width:"10%"}}>#</th>
              <th>상품정보</th>
              <th>상품금액</th>
              <th>배송비</th>
            </tr>
          </thead>
          <tbody>
            <tr style={{marginTop:"10px",borderTop:"1px solid black",borderBottom:"1px solid black"}}>
              <td>
                  <img style={{width:"78px", height:"78px"}} src="./images/image/1.webp" alt="" />
              </td>
              <TdItem style={{verticalAlign:"top"}}>
                <h1>가나다라마바사</h1>
                <p>가나다라마바사</p>
              </TdItem>
              <td style={{verticalAlign:"top"}}>금액</td>
              <td style={{verticalAlign:"top"}}>배송비</td>
            </tr>

          </tbody>
        </table>
      </CartContainer>): <div>잘못된 경로입니다</div>}
   
    </Container>

유저 접근페이지에서는 getuser()함수를 사용해서 삼항연산자로 분류를 한다, athenticate state같은걸 만들어도 될 것같음