File tree 25 files changed +75
-75
lines changed
03_reentrancy_via_modifier
04_cross_function_reentrancy
05_cross_contract_reentrancy
07_phishing_with_improper_authorization
25 files changed +75
-75
lines changed Original file line number Diff line number Diff line change 1
1
// SPDX-License-Identifier: BSL-1.0 (Boost Software License 1.0)
2
2
3
- //---------------------------------------------------------------------------------//
4
- // Copyright 2022 - 2023 serial-coder: Phuwanai Thummavet (mr.thummavet@gmail.com) //
5
- //---------------------------------------------------------------------------------//
3
+ //------------------------------------------------------------------------------------- //
4
+ // Copyright (c) 2022 - 2023 serial-coder: Phuwanai Thummavet (mr.thummavet@gmail.com) //
5
+ //------------------------------------------------------------------------------------- //
6
6
7
7
// For more info, please refer to my article:
8
8
// - On Medium: https://medium.com/valixconsulting/solidity-smart-contract-security-by-example-01-integer-underflow-c1147c2e507b
Original file line number Diff line number Diff line change 1
1
// SPDX-License-Identifier: BSL-1.0 (Boost Software License 1.0)
2
2
3
- //---------------------------------------------------------------------------------//
4
- // Copyright 2022 - 2023 serial-coder: Phuwanai Thummavet (mr.thummavet@gmail.com) //
5
- //---------------------------------------------------------------------------------//
3
+ //------------------------------------------------------------------------------------- //
4
+ // Copyright (c) 2022 - 2023 serial-coder: Phuwanai Thummavet (mr.thummavet@gmail.com) //
5
+ //------------------------------------------------------------------------------------- //
6
6
7
7
// For more info, please refer to my article:
8
8
// - On Medium: https://medium.com/valixconsulting/solidity-smart-contract-security-by-example-01-integer-underflow-c1147c2e507b
Original file line number Diff line number Diff line change 1
1
// SPDX-License-Identifier: BSL-1.0 (Boost Software License 1.0)
2
2
3
- //---------------------------------------------------------------------------------//
4
- // Copyright 2022 - 2023 serial-coder: Phuwanai Thummavet (mr.thummavet@gmail.com) //
5
- //---------------------------------------------------------------------------------//
3
+ //------------------------------------------------------------------------------------- //
4
+ // Copyright (c) 2022 - 2023 serial-coder: Phuwanai Thummavet (mr.thummavet@gmail.com) //
5
+ //------------------------------------------------------------------------------------- //
6
6
7
7
// For more info, please refer to my article:
8
8
// - On Medium: https://medium.com/valixconsulting/solidity-smart-contract-security-by-example-01-integer-underflow-c1147c2e507b
Original file line number Diff line number Diff line change 1
1
// SPDX-License-Identifier: BSL-1.0 (Boost Software License 1.0)
2
2
3
- //---------------------------------------------------------------------------------//
4
- // Copyright 2022 - 2023 serial-coder: Phuwanai Thummavet (mr.thummavet@gmail.com) //
5
- //---------------------------------------------------------------------------------//
3
+ //------------------------------------------------------------------------------------- //
4
+ // Copyright (c) 2022 - 2023 serial-coder: Phuwanai Thummavet (mr.thummavet@gmail.com) //
5
+ //------------------------------------------------------------------------------------- //
6
6
7
7
// For more info, please refer to my article:
8
8
// - On Medium: https://medium.com/valixconsulting/solidity-smart-contract-security-by-example-01-integer-underflow-c1147c2e507b
Original file line number Diff line number Diff line change 1
1
// SPDX-License-Identifier: BSL-1.0 (Boost Software License 1.0)
2
2
3
- //---------------------------------------------------------------------------------//
4
- // Copyright 2022 - 2023 serial-coder: Phuwanai Thummavet (mr.thummavet@gmail.com) //
5
- //---------------------------------------------------------------------------------//
3
+ //------------------------------------------------------------------------------------- //
4
+ // Copyright (c) 2022 - 2023 serial-coder: Phuwanai Thummavet (mr.thummavet@gmail.com) //
5
+ //------------------------------------------------------------------------------------- //
6
6
7
7
// For more info, please refer to my article:
8
8
// - On Medium: https://medium.com/valixconsulting/solidity-smart-contract-security-by-example-02-reentrancy-b0c08cfcd555
Original file line number Diff line number Diff line change 1
1
// SPDX-License-Identifier: BSL-1.0 (Boost Software License 1.0)
2
2
3
- //---------------------------------------------------------------------------------//
4
- // Copyright 2022 - 2023 serial-coder: Phuwanai Thummavet (mr.thummavet@gmail.com) //
5
- //---------------------------------------------------------------------------------//
3
+ //------------------------------------------------------------------------------------- //
4
+ // Copyright (c) 2022 - 2023 serial-coder: Phuwanai Thummavet (mr.thummavet@gmail.com) //
5
+ //------------------------------------------------------------------------------------- //
6
6
7
7
// For more info, please refer to my article:
8
8
// - On Medium: https://medium.com/valixconsulting/solidity-smart-contract-security-by-example-02-reentrancy-b0c08cfcd555
Original file line number Diff line number Diff line change 1
1
// SPDX-License-Identifier: BSL-1.0 (Boost Software License 1.0)
2
2
3
- //---------------------------------------------------------------------------------//
4
- // Copyright 2022 - 2023 serial-coder: Phuwanai Thummavet (mr.thummavet@gmail.com) //
5
- //---------------------------------------------------------------------------------//
3
+ //------------------------------------------------------------------------------------- //
4
+ // Copyright (c) 2022 - 2023 serial-coder: Phuwanai Thummavet (mr.thummavet@gmail.com) //
5
+ //------------------------------------------------------------------------------------- //
6
6
7
7
// For more info, please refer to my article:
8
8
// - On Medium: https://medium.com/valixconsulting/solidity-smart-contract-security-by-example-02-reentrancy-b0c08cfcd555
Original file line number Diff line number Diff line change 1
1
// SPDX-License-Identifier: BSL-1.0 (Boost Software License 1.0)
2
2
3
- //---------------------------------------------------------------------------------//
4
- // Copyright 2022 - 2023 serial-coder: Phuwanai Thummavet (mr.thummavet@gmail.com) //
5
- //---------------------------------------------------------------------------------//
3
+ //------------------------------------------------------------------------------------- //
4
+ // Copyright (c) 2022 - 2023 serial-coder: Phuwanai Thummavet (mr.thummavet@gmail.com) //
5
+ //------------------------------------------------------------------------------------- //
6
6
7
7
// For more info, please refer to my article:
8
8
// - On Medium: https://medium.com/valixconsulting/solidity-smart-contract-security-by-example-03-reentrancy-via-modifier-fba6b1d8ff81
Original file line number Diff line number Diff line change 1
1
// SPDX-License-Identifier: BSL-1.0 (Boost Software License 1.0)
2
2
3
- //---------------------------------------------------------------------------------//
4
- // Copyright 2022 - 2023 serial-coder: Phuwanai Thummavet (mr.thummavet@gmail.com) //
5
- //---------------------------------------------------------------------------------//
3
+ //------------------------------------------------------------------------------------- //
4
+ // Copyright (c) 2022 - 2023 serial-coder: Phuwanai Thummavet (mr.thummavet@gmail.com) //
5
+ //------------------------------------------------------------------------------------- //
6
6
7
7
// For more info, please refer to my article:
8
8
// - On Medium: https://medium.com/valixconsulting/solidity-smart-contract-security-by-example-03-reentrancy-via-modifier-fba6b1d8ff81
Original file line number Diff line number Diff line change 1
1
// SPDX-License-Identifier: BSL-1.0 (Boost Software License 1.0)
2
2
3
- //---------------------------------------------------------------------------------//
4
- // Copyright 2022 - 2023 serial-coder: Phuwanai Thummavet (mr.thummavet@gmail.com) //
5
- //---------------------------------------------------------------------------------//
3
+ //------------------------------------------------------------------------------------- //
4
+ // Copyright (c) 2022 - 2023 serial-coder: Phuwanai Thummavet (mr.thummavet@gmail.com) //
5
+ //------------------------------------------------------------------------------------- //
6
6
7
7
// For more info, please refer to my article:
8
8
// - On Medium: https://medium.com/valixconsulting/solidity-smart-contract-security-by-example-03-reentrancy-via-modifier-fba6b1d8ff81
Original file line number Diff line number Diff line change 1
1
// SPDX-License-Identifier: BSL-1.0 (Boost Software License 1.0)
2
2
3
- //---------------------------------------------------------------------------------//
4
- // Copyright 2022 - 2023 serial-coder: Phuwanai Thummavet (mr.thummavet@gmail.com) //
5
- //---------------------------------------------------------------------------------//
3
+ //------------------------------------------------------------------------------------- //
4
+ // Copyright (c) 2022 - 2023 serial-coder: Phuwanai Thummavet (mr.thummavet@gmail.com) //
5
+ //------------------------------------------------------------------------------------- //
6
6
7
7
// For more info, please refer to my article:
8
8
// - On Medium: https://medium.com/valixconsulting/solidity-smart-contract-security-by-example-03-reentrancy-via-modifier-fba6b1d8ff81
Original file line number Diff line number Diff line change 1
1
// SPDX-License-Identifier: BSL-1.0 (Boost Software License 1.0)
2
2
3
- //---------------------------------------------------------------------------------//
4
- // Copyright 2022 - 2023 serial-coder: Phuwanai Thummavet (mr.thummavet@gmail.com) //
5
- //---------------------------------------------------------------------------------//
3
+ //------------------------------------------------------------------------------------- //
4
+ // Copyright (c) 2022 - 2023 serial-coder: Phuwanai Thummavet (mr.thummavet@gmail.com) //
5
+ //------------------------------------------------------------------------------------- //
6
6
7
7
// For more info, please refer to my article:
8
8
// - On Medium: https://medium.com/valixconsulting/solidity-smart-contract-security-by-example-04-cross-function-reentrancy-de9cbce0558e
Original file line number Diff line number Diff line change 1
1
// SPDX-License-Identifier: BSL-1.0 (Boost Software License 1.0)
2
2
3
- //---------------------------------------------------------------------------------//
4
- // Copyright 2022 - 2023 serial-coder: Phuwanai Thummavet (mr.thummavet@gmail.com) //
5
- //---------------------------------------------------------------------------------//
3
+ //------------------------------------------------------------------------------------- //
4
+ // Copyright (c) 2022 - 2023 serial-coder: Phuwanai Thummavet (mr.thummavet@gmail.com) //
5
+ //------------------------------------------------------------------------------------- //
6
6
7
7
// For more info, please refer to my article:
8
8
// - On Medium: https://medium.com/valixconsulting/solidity-smart-contract-security-by-example-04-cross-function-reentrancy-de9cbce0558e
Original file line number Diff line number Diff line change 1
1
// SPDX-License-Identifier: BSL-1.0 (Boost Software License 1.0)
2
2
3
- //---------------------------------------------------------------------------------//
4
- // Copyright 2022 - 2023 serial-coder: Phuwanai Thummavet (mr.thummavet@gmail.com) //
5
- //---------------------------------------------------------------------------------//
3
+ //------------------------------------------------------------------------------------- //
4
+ // Copyright (c) 2022 - 2023 serial-coder: Phuwanai Thummavet (mr.thummavet@gmail.com) //
5
+ //------------------------------------------------------------------------------------- //
6
6
7
7
// For more info, please refer to my article:
8
8
// - On Medium: https://medium.com/valixconsulting/solidity-smart-contract-security-by-example-04-cross-function-reentrancy-de9cbce0558e
Original file line number Diff line number Diff line change 1
1
// SPDX-License-Identifier: BSL-1.0 (Boost Software License 1.0)
2
2
3
- //---------------------------------------------------------------------------------//
4
- // Copyright 2022 - 2023 serial-coder: Phuwanai Thummavet (mr.thummavet@gmail.com) //
5
- //---------------------------------------------------------------------------------//
3
+ //------------------------------------------------------------------------------------- //
4
+ // Copyright (c) 2022 - 2023 serial-coder: Phuwanai Thummavet (mr.thummavet@gmail.com) //
5
+ //------------------------------------------------------------------------------------- //
6
6
7
7
// For more info, please refer to my article:
8
8
// - On Medium: https://medium.com/valixconsulting/solidity-smart-contract-security-by-example-04-cross-function-reentrancy-de9cbce0558e
Original file line number Diff line number Diff line change 1
1
// SPDX-License-Identifier: BSL-1.0 (Boost Software License 1.0)
2
2
3
- //---------------------------------------------------------------------------------//
4
- // Copyright 2022 - 2023 serial-coder: Phuwanai Thummavet (mr.thummavet@gmail.com) //
5
- //---------------------------------------------------------------------------------//
3
+ //------------------------------------------------------------------------------------- //
4
+ // Copyright (c) 2022 - 2023 serial-coder: Phuwanai Thummavet (mr.thummavet@gmail.com) //
5
+ //------------------------------------------------------------------------------------- //
6
6
7
7
// For more info, please refer to my article:
8
8
// - On Medium: https://medium.com/valixconsulting/solidity-smart-contract-security-by-example-05-cross-contract-reentrancy-30f29e2a01b9
Original file line number Diff line number Diff line change 1
1
// SPDX-License-Identifier: BSL-1.0 (Boost Software License 1.0)
2
2
3
- //---------------------------------------------------------------------------------//
4
- // Copyright 2022 - 2023 serial-coder: Phuwanai Thummavet (mr.thummavet@gmail.com) //
5
- //---------------------------------------------------------------------------------//
3
+ //------------------------------------------------------------------------------------- //
4
+ // Copyright (c) 2022 - 2023 serial-coder: Phuwanai Thummavet (mr.thummavet@gmail.com) //
5
+ //------------------------------------------------------------------------------------- //
6
6
7
7
// For more info, please refer to my article:
8
8
// - On Medium: https://medium.com/valixconsulting/solidity-smart-contract-security-by-example-05-cross-contract-reentrancy-30f29e2a01b9
Original file line number Diff line number Diff line change 1
1
// SPDX-License-Identifier: BSL-1.0 (Boost Software License 1.0)
2
2
3
- //---------------------------------------------------------------------------------//
4
- // Copyright 2022 - 2023 serial-coder: Phuwanai Thummavet (mr.thummavet@gmail.com) //
5
- //---------------------------------------------------------------------------------//
3
+ //------------------------------------------------------------------------------------- //
4
+ // Copyright (c) 2022 - 2023 serial-coder: Phuwanai Thummavet (mr.thummavet@gmail.com) //
5
+ //------------------------------------------------------------------------------------- //
6
6
7
7
// For more info, please refer to my article:
8
8
// - On Medium: https://medium.com/valixconsulting/solidity-smart-contract-security-by-example-05-cross-contract-reentrancy-30f29e2a01b9
Original file line number Diff line number Diff line change 1
1
// SPDX-License-Identifier: BSL-1.0 (Boost Software License 1.0)
2
2
3
- //---------------------------------------------------------------------------------//
4
- // Copyright 2022 - 2023 serial-coder: Phuwanai Thummavet (mr.thummavet@gmail.com) //
5
- //---------------------------------------------------------------------------------//
3
+ //------------------------------------------------------------------------------------- //
4
+ // Copyright (c) 2022 - 2023 serial-coder: Phuwanai Thummavet (mr.thummavet@gmail.com) //
5
+ //------------------------------------------------------------------------------------- //
6
6
7
7
// For more info, please refer to my article:
8
8
// - On Medium: https://medium.com/valixconsulting/solidity-smart-contract-security-by-example-05-cross-contract-reentrancy-30f29e2a01b9
Original file line number Diff line number Diff line change 1
1
// SPDX-License-Identifier: BSL-1.0 (Boost Software License 1.0)
2
2
3
- //---------------------------------------------------------------------------------//
4
- // Copyright 2022 - 2023 serial-coder: Phuwanai Thummavet (mr.thummavet@gmail.com) //
5
- //---------------------------------------------------------------------------------//
3
+ //------------------------------------------------------------------------------------- //
4
+ // Copyright (c) 2022 - 2023 serial-coder: Phuwanai Thummavet (mr.thummavet@gmail.com) //
5
+ //------------------------------------------------------------------------------------- //
6
6
7
7
// For more info, please refer to my article:
8
8
// - On Medium: https://medium.com/valixconsulting/solidity-smart-contract-security-by-example-06-integer-overflow-e1f444f3cc4
Original file line number Diff line number Diff line change 1
1
// SPDX-License-Identifier: BSL-1.0 (Boost Software License 1.0)
2
2
3
- //---------------------------------------------------------------------------------//
4
- // Copyright 2022 - 2023 serial-coder: Phuwanai Thummavet (mr.thummavet@gmail.com) //
5
- //---------------------------------------------------------------------------------//
3
+ //------------------------------------------------------------------------------------- //
4
+ // Copyright (c) 2022 - 2023 serial-coder: Phuwanai Thummavet (mr.thummavet@gmail.com) //
5
+ //------------------------------------------------------------------------------------- //
6
6
7
7
// For more info, please refer to my article:
8
8
// - On Medium: https://medium.com/valixconsulting/solidity-smart-contract-security-by-example-06-integer-overflow-e1f444f3cc4
Original file line number Diff line number Diff line change 1
1
// SPDX-License-Identifier: BSL-1.0 (Boost Software License 1.0)
2
2
3
- //---------------------------------------------------------------------------------//
4
- // Copyright 2022 - 2023 serial-coder: Phuwanai Thummavet (mr.thummavet@gmail.com) //
5
- //---------------------------------------------------------------------------------//
3
+ //------------------------------------------------------------------------------------- //
4
+ // Copyright (c) 2022 - 2023 serial-coder: Phuwanai Thummavet (mr.thummavet@gmail.com) //
5
+ //------------------------------------------------------------------------------------- //
6
6
7
7
// For more info, please refer to my article:
8
8
// - On Medium: https://medium.com/valixconsulting/solidity-smart-contract-security-by-example-06-integer-overflow-e1f444f3cc4
Original file line number Diff line number Diff line change 1
1
// SPDX-License-Identifier: BSL-1.0 (Boost Software License 1.0)
2
2
3
- //---------------------------------------------------------------------------------//
4
- // Copyright 2022 - 2023 serial-coder: Phuwanai Thummavet (mr.thummavet@gmail.com) //
5
- //---------------------------------------------------------------------------------//
3
+ //------------------------------------------------------------------------------------- //
4
+ // Copyright (c) 2022 - 2023 serial-coder: Phuwanai Thummavet (mr.thummavet@gmail.com) //
5
+ //------------------------------------------------------------------------------------- //
6
6
7
7
// For more info, please refer to my article:
8
8
// - On Medium: https://medium.com/valixconsulting/solidity-smart-contract-security-by-example-07-phishing-with-improper-authorization-232dacf307e3
Original file line number Diff line number Diff line change 1
1
// SPDX-License-Identifier: BSL-1.0 (Boost Software License 1.0)
2
2
3
- //---------------------------------------------------------------------------------//
4
- // Copyright 2022 - 2023 serial-coder: Phuwanai Thummavet (mr.thummavet@gmail.com) //
5
- //---------------------------------------------------------------------------------//
3
+ //------------------------------------------------------------------------------------- //
4
+ // Copyright (c) 2022 - 2023 serial-coder: Phuwanai Thummavet (mr.thummavet@gmail.com) //
5
+ //------------------------------------------------------------------------------------- //
6
6
7
7
// For more info, please refer to my article:
8
8
// - On Medium: https://medium.com/valixconsulting/solidity-smart-contract-security-by-example-07-phishing-with-improper-authorization-232dacf307e3
Original file line number Diff line number Diff line change 1
1
// SPDX-License-Identifier: BSL-1.0 (Boost Software License 1.0)
2
2
3
- //---------------------------------------------------------------------------------//
4
- // Copyright 2022 - 2023 serial-coder: Phuwanai Thummavet (mr.thummavet@gmail.com) //
5
- //---------------------------------------------------------------------------------//
3
+ //------------------------------------------------------------------------------------- //
4
+ // Copyright (c) 2022 - 2023 serial-coder: Phuwanai Thummavet (mr.thummavet@gmail.com) //
5
+ //------------------------------------------------------------------------------------- //
6
6
7
7
// For more info, please refer to my article:
8
8
// - On Medium: https://medium.com/valixconsulting/solidity-smart-contract-security-by-example-07-phishing-with-improper-authorization-232dacf307e3
You can’t perform that action at this time.
0 commit comments