SANJIESAN WORLDJOURNAL / COLLECTIONS / SANJIESAN
SANJIESANTOOLS

SANJIESAN TOOLS / Safer data handling

A text export should not quietly become a formula

A feedback sheet may contain titles, usernames and comments entered by other people. When exported to a spreadsheet, a string can be interpreted differently from the way it appeared in a web form. Treat that change of context as a design question, not a last-minute formatting detail.

Identify which columns accept outside text

Mark every field that can contain somebody else’s input, including imported titles and filenames. OWASP describes formula injection when spreadsheet software interprets specially prefixed cells as formulas; it also warns that CSV quoting alone is not a universal remedy. Do not demonstrate the risk with a command, external connection or private data. A harmless arithmetic-looking string is enough to discuss whether a field is meant to remain literal text.

Choose the consumer before the transformation

Write down whether the export is for human viewing in one named spreadsheet app or for another program to ingest. A transformation that improves viewing can alter the underlying data used by a later import. Keep an unchanged source record and a separate export representation. Ask the person responsible for the exporter to document the chosen treatment for each text column, rather than applying an undocumented prefix to every value in the database.

Test saving and reopening, not just opening

Use synthetic records and the actual receiving application. Inspect the literal value after opening, after saving and after reopening the saved copy. Record the application version and import route with the result. OWASP notes that behaviour can differ between spreadsheet applications and across save cycles. If a required route cannot keep untrusted fields as text, stop that export route and review its design; a reassuring first screenshot is not sufficient evidence.

Sources & further reading

LET’S MAKE WHAT COMES NEXT

Have a product, a resource or an idea?

For suppliers, creators and brands. Tell us what you have in mind and where you work.

Start a conversation ↗