• Contact Us
  • Advertise
  • Submit PR
Thursday, January 22, 2026
  • Login
  • Register
YNOT
  • Home
  • Industry News
    • Adult Business News
    • Adult Novelty News
    • Web & Tech News
    • Video Game News
    • EU News
  • PR Wire
  • Podcasts
  • Industry Guides
  • Newsletters
No Result
View All Result
  • Home
  • Industry News
    • Adult Business News
    • Adult Novelty News
    • Web & Tech News
    • Video Game News
    • EU News
  • PR Wire
  • Podcasts
  • Industry Guides
  • Newsletters
No Result
View All Result
YNOT
No Result
View All Result
Home YNOT Features YNOT University

Perl, CGI and Secure Coding

admin by admin
May 8, 2000
in YNOT University
News Flash to White House: 95-Percent of Americans Didn’t Wait for Marriage
491
SHARES
Share on FacebookShare on Twitter

After a recent post on our message board and reading up a little bit here and there, I figured
I’d go ahead and write an article on security for a change. Most of us (programmers that is)
already know what I’m about to write (or they -should- know) but for newbies it might
be interesting.

First of all, is Perl a secure language? That really depends on the programmer.After a recent post on our message board and reading up a little bit here and there, I figured
I’d go ahead and write an article on security for a change. Most of us (programmers that is)
already know what I’m about to write (or they -should- know) but for newbies it might
be interesting.

First of all, is Perl a secure language? That really depends on the programmer. It’s the same
as driving really, you can either drive like a maniac or drive defensively. It’s the same
with Perl programs. If you code like a maniac without thinking about what your code
actually does, well, let’s just say the results could be ugly.

Case in point, the message on the messageboard pointed out a rather simple flaw. Simple, yes,
far-fetching results, hell yes. I tried fiddling with it and ended up with a copy of /etc/passwd
(the Unix password file). In itself not that big of a deal, but still it’s information you
don’t want just anyone to read.

Here’s the trick to secure coding: Think. If you think about what your code does, where
the input from form fields goes, what’s done with the output, you are half way there.
The other 50% of the secure coding exercise is using Perl’s taint checking (the -t flag).
Taint checking will die() your script with an error if you are using data that is ‘contaminated’.
Contaminated means that it’s unchecked, and might (or might not) contain data that will get
you a whole lot of other results than the ones you hoped for.

Since taint checking is a rather long-winded subject, I’d like to refer everyone to their
perl documentation (those files you never read 😉 and read up on it.

Also, remember, shell commands are fun, but might cause some very serious security holes. Things
like executing shell commands using backticks or the system() call. If someone puts the
appropriate characters in that string, bad voodoo is going to come over your script. I won’t give
you detailed instructions, after all, this is not a course on hacking but an article on how
to code securely.

And so it ends, the main point here is that you should think about what your script does,
visualise it’s flow in your head, and work from there. If you have any more questions, feel
free to contact me at madcat@perlcoders.com

Share196Tweet123
admin

admin

YNOT Admin wields his absolute power without mercy. When he's not busy banning spam comments to hell he enjoys petting bunnies and eating peanut butter. He recommends everyone try the YNOT Mail (ynotmail.com) email marketing platform and avoid giving their money to mainstream services that hate adult companies.

Related Posts

Adult Business News

UK Online Safety Act Cuts Pornhub Traffic 36% as Age Verification Takes Effect

December 13, 2025
The Cambassador: Lindsey Banks, Flirt4Free and Brand Representation
Adult Business News

The Cambassador: Lindsey Banks, Flirt4Free and Brand Representation

September 5, 2018
ImLive’s Mere Menezes Siqueira Manages Models, Makes the Machine Work
Adult Business News

ImLive’s Mere Menezes Siqueira Manages Models, Makes the Machine Work

August 23, 2018
Corey Silverstein of Adult.law
Adult Business News

Silverstein Says: 3 Legal Issues Cam Companies, Models Must Pay Attention To

August 22, 2018
Load More

SPONSOR

INDUSTRY EVENTS

Currently Playing

YNOT Summit Model Track: Nerds Dig Sexy Gamers

YNOT Summit Model Track: Nerds Dig Sexy Gamers

01:05:46

YNOT Summit Webmaster Track: Understanding Webcam Business Models

00:51:11

YNOT Summit Model Track: Cam Law 101

01:26:24

POPULAR NEWS

Lucky Luck of Lucky Luck Productions Featured on Fucking Around with Porn Stars on Skyhawk After Dark Radio

January 21, 2026

Shay Fox Makes Her Evolved Fights Debut

January 21, 2026

Melody Marks Stars in “Strong Hands, Sweet Butt” for Oops Family

January 21, 2026

SPONSOR

YNOT YNOT

QUICK LINKS:

  • About YNOT
  • Terms of Use
  • Privacy Policy
  • Editorial Team
  • Advertise on YNOT
  • Support
  • Contact Us

FRIENDS OF YNOT:

  • Best Adult Cams
  • Live Porn
  • Adult Reviews
  • Adult Email Marketing
  • Discounted Porn
  • vr porn sites
  • European Adult Biz Magazine

FRIENDS OF YNOT:

  • Rabbits Reviews
  • XXX Job Interviews
  • Adult Site Broker
  • Femdom
  • Paid Porn Sites
  • Live Sex
  • Cam girl sites
  • 2018 YNOT Cam Awards Official Nominees
  • About YNOT
  • Adult Company Directory – Coming Soon
  • Adult Industry News | Adult Entertainment Business Tools
  • Adult Industry News | Webcams, Affiliates, Web Developers
  • Advertise on YNOT
  • Attending the 2018 YNOT Cam Awards in Hollywood
  • Business Directory
  • Cart
  • Checkout
  • Claim Listing
  • Complaint Policy
  • Contact Editorial Team
  • DMCA Policy
  • Home
  • Home 2
  • Home 3
  • Home 4
  • Home 5
  • My account
  • Newsletters
  • Porn News & XXX Industry News
  • Privacy Policy for California Residents
  • Shop
  • Sitemap
  • Sitemap Categories
  • Support
  • Test Page
  • Test Page
  • YNOT Adult Affiliate Marketing Guide
  • YNOT Cam Awards Nominee Information Page
  • YNOT Magazine: Issue 1, 2018
  • YNOT Party 2016 Austin – Event Page
  • YNOT Policy Regarding Social Media or Private Disputes
  • YNOT Privacy Policy
  • YNOT Terms and Conditions

Copyright © 2026 YNOT Group LLC.

Welcome Back!

Login to your account below

Forgotten Password? Sign Up

Create New Account!

Fill the forms below to register

All fields are required. Log In

Retrieve your password

Please enter your username or email address to reset your password.

Log In
No Result
View All Result
  • 2018 YNOT Cam Awards Official Nominees
  • About YNOT
  • Adult Company Directory – Coming Soon
  • Adult Industry News | Adult Entertainment Business Tools
  • Adult Industry News | Webcams, Affiliates, Web Developers
  • Advertise on YNOT
  • Attending the 2018 YNOT Cam Awards in Hollywood
  • Business Directory
    • Search
    • Submit Listing
    • Submit Listing
    • Submit Listing
    • YNOT Business Directory Submission
  • Cart
  • Checkout
  • Claim Listing
  • Complaint Policy
  • Contact Editorial Team
  • DMCA Policy
  • Home
  • Home 2
  • Home 3
  • Home 4
  • Home 5
  • My account
  • Newsletters
  • Porn News & XXX Industry News
  • Privacy Policy for California Residents
  • Shop
  • Sitemap
  • Sitemap Categories
  • Support
  • Test Page
  • Test Page
  • YNOT Adult Affiliate Marketing Guide
    • Adult Affiliate Marketing for Beginners: A Basic Guide for Getting Started in 2023
    • Adult Affiliate Marketing Verticals Guide
    • Adult Email Marketing Best Practices
    • Buying Adult Email Lists: Why This is Always a Bad Idea
    • Key Concepts: Adult Affiliate Programs
    • Key Concepts: Adult Email Lists
    • Key Concepts: Landing Pages
    • Key Concepts: Sender Reputation
  • YNOT Cam Awards Nominee Information Page
  • YNOT Magazine: Issue 1, 2018
  • YNOT Party 2016 Austin – Event Page
  • YNOT Policy Regarding Social Media or Private Disputes
  • YNOT Privacy Policy
  • YNOT Terms and Conditions

Copyright © 2026 YNOT Group LLC.

We use cookies to ensure that we give you the best experience on our website. If you continue to use this site we will assume that you are happy with it.