Skip to content

Default Visibility / Function Exposed (legacy)

SAFE-0096 Access Control Checked automatically by the scanner
1

What goes wrong

Functions without an explicit visibility specifier defaulted to public in old Solidity, exposing intended-internal logic to external callers.

2

How to fix it

the pattern that is safe
function _helper() internal { sensitive(); }
SWC-100. Always set explicit visibility.
Check your own contract for this

The SaferICO scanner runs 201 detectors over your Solidity source, SAFE-0096 among them. Paste an address or the source itself — a small per-scan fee, shown before you sign, or unlimited on any plan.

Run the scanner See how it is attacked Read the docs