Skip to content

Releases: ethereum/sourcify

v2.5.1

31 Jul 13:51
cababb7
Compare
Choose a tag to compare
  • Fixes the login not working in Create2 because of 3rd party cookies
  • Fix wrong the IPFS dedicated fallback GW links

What's Changed

Full Changelog: v2.5.0...v2.5.1

v2.5.0

27 Jul 14:56
1e4ad48
Compare
Choose a tag to compare

What's Changed

  • Fix Puppeteer scraping errors
  • Split IPFS into two containers: gateway and server.
  • Add Base mainnet (8453) by @mdehoog in #1112
  • add chain 212 by @mapdev33 in #1109
  • add new chain for 22776 by @mapdev33 in #1113
  • Protect create2 verification with an auth0 authentication by @marcocastignoli in #1090
  • New Chains:
    • Base Mainnet (8453)
    • MAP Testnet Makalu (212)
    • map-relay-chain Mainnet (22776)

New Contributors

Full Changelog: v2.4.0...v2.5.0

v2.4.0

13 Jul 09:24
7fe95a0
Compare
Choose a tag to compare

What's Changed

  • Implement logging for LibSourcify by @marcocastignoli in #1082
  • Removing web3js in favor of ethers @kuzdogan in #1083
  • Blockscout scraping and use c8 instead of nyc by @kuzdogan in #1092
  • Change local rpc by @kuzdogan in #1101
  • added dex.guru to powered by section by @NemeZZiZZ in #1081
  • Catch auxdata decode error when checking for perfect match by @sealer3 in #1105
  • New Chains:
    • UPTN Mainnet (6119)
    • Kava Mainnet (2222)
    • Ethereum Classic (61)
    • Filecoin Mainnet (314)
    • Zilliqa EVM (32769)
    • Zilliqa Tesnet EVM (33101)
    • Kava Tesnet (2221)
    • Siberium (111000)

New Contributors

Full Changelog: v2.3.1...v2.4.0

v2.3.1

26 Jun 10:39
Compare
Choose a tag to compare
  • Add Hardhat and Ganache local networks when not running on NODE_ENV=production.
  • New Chains:
    • Rollux Mainnet (570)
    • Rollux Testnet (5700)
  • Fix Matomo URLs
  • Persist Loki and Prometheus data
  • Fix monitor logging

What's Changed

New Contributors

Full Changelog: v2.3.0...v2.3.1

v2.3.0

22 Jun 08:57
Compare
Choose a tag to compare

What's changed

  • Controller refactoring: Refactored the controller code to split into smaller pieces, as the single VerificationController was difficult to manage and navigate. Add openAPI documentation for the API. Also validate the API requests through the openAPI specification using express-openapi-validator.
  • Fix #1071 prevent overriding already verified contract
  • New chains:
    • Zora (7777777)
  • Update Loki config

PRs

New Contributors

Full Changelog: v2.2.4...v2.3.0

v2.2.4

14 Jun 10:08
f107bdb
Compare
Choose a tag to compare
  • Update chain 7001 test
  • Accept update-chain-xxx branch name for chain tests
  • Add Promtail config to push nginx logs to Loki

What's Changed

Full Changelog: v2.2.3...v2.2.4

v2.2.3

12 Jun 11:47
1ec70ac
Compare
Choose a tag to compare
  • New Chains
    • Bitkub (96)
    • Cronos (25)
    • Elysium Mainnet (1339)
    • Taiko Alpha v3 (167005)
  • Update Symplexia (1149) test contracts
  • Fix lerna bootsrap failing in CI
  • Add cronoscan in Etherscan tests
  • Fix Moonbeam scan test

What's Changed

New Contributors

Full Changelog: v2.2.2...v2.2.3

v2.2.2

12 Jun 11:42
4a8528c
Compare
Choose a tag to compare
  • Updated chains.json
  • Added RPC_TIMEOUT as env var in lib-sourcify
  • Replace the video on the website

Release v2.2.1

01 Jun 13:46
4f9e6ef
Compare
Choose a tag to compare

What's Changed

  • Fix Matomo configs after migration
  • Fixes for chain verification tests
  • New chains:
    • Dogechain (2000)
    • Symplexia Smart Chain (1149)
  • Turned off support for chains:
    • POA Sokol (77)
    • Boba Rinkeby (28)
    • Candle (534)
    • Darwinia Pangolin (43)
    • Gather Devnet (486217935)
    • Crystaleum (103090)
    • POA Core (99)
    • Astar (592)
    • Gnosis Chiado (10200)
    • Flare (14)
    • Optimism Bedrock Alpha (28528)

Note that on the prev PR named Release v2.2.1, the commit tag was not generated and no release was actually done.

Pull requests

New Contributors

Full Changelog: v2.2.0...v2.2.1

Release 2.2.0

09 May 07:58
3c388e4
Compare
Choose a tag to compare

What's Changed

Features

  • Verification with Standard JSON Input
  • Added support for new chains (295, 7668, 7672, 888, 999, and 7701)
  • Implemented a complete Metadata type
  • Generate variations of the metadata file in partial match to reach a full match
  • Added "Lookup Another" button in Lookup result
  • Add server monitoring capabilities to Grafana
  • Added GitHub star button

Fixes

  • Etherscan metadata variations
  • Fix EventManager fails if listeners are not set
  • Update h5ai-nginx submodule to the latest version
  • Fix how the UI handles non-checksummed addresses
  • Reorder the metadata object before generating the variations
  • Add test for not alphabetically sorted metadata
  • Disable chainId 51 getCreatorTx test
  • Re-enable SourcifyEventManager's listeners
  • Add a repository link to the create2 verified contracts
  • Use checkSupportedChainId instead of checkChainId for contract verification
  • Update typescript and typedoc in lib-sourcify
  • Handle libraries with call protection
  • Add nginx exporter for Prometheus
  • Improve the function to sanitize path at storeSources
  • Display the create2 repo link only for create2 results
  • Fix abitype req. typescript v5+
  • Show error on bad Etherscan req
  • Change OPTIMISTIC_ETHERSCAN to OPTIMISMSCAN
  • Revert accidentally setting sed to gsed
  • Fix matchWithCreationTx by decoding the constructor arguments
  • Test for paths in metadata containing multiple ../
  • Fix linter errors and warnings

Fixed vulnerabilities

Thanks to @Hellobloc for reporting the following vulnerabilities.

Path traversal vulnerability when storing contracts

Summary

When the file path is saved with ../ as prefix, the file is potentially saved in other locations in the repository.

Example

immagine

Solution

The solidity compiler collapses all the /../ components in the path, the same algorithm was implemented in Sourcify to fix the path traversal vulnerability.

Malicous creation bytecode bypass the startsWith check in matchWithCreationTx

Summary

The start_with vulnerability enables arbitrary source code verification.

When comparing Creation Code, bytecode comparison is performed using the start_with function. This is designed to facilitate source code validation when constructor arguments are present.

However, relying solely on start_with for source code validation without verifying constructor arguments can introduce risks.

In particular, it is possible to create contract source code without compilation results by utilizing abstract and interface contracts. Such source code can pass the start_with check for any contract bytecode.

Example

https://github.com/Hellobloc/verify/tree/test_start_with
https://repo.staging.sourcify.dev/contracts/partial_match/5/0x5ea1E75790b86C4c5Db5e7c7A1fa14d683D50Cfe/sources/contracts/

Solution

This problem is solved by decoding the rest of the bytecode after startsWith assuming it is the ABI encoded constructor arguments part. If the decoding fails, an error is thrown.

PRs

New Contributors

Full Changelog: v2.1.1...v2.2.0